Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-46532 — Reproduction of SQL Injection Vulnerabilities in OpenHIS | Kitploit
Tools/GitHubGitHub/kamenriderdarker/cve-2024-46532
Vulnerability AnalysisCode AnalysisWeb Application ExploitationPenetration TestingLearning & EducationDatabase Security
GitHubkamenriderdarker/cve-2024-46532

CVE-2024-46532

Reproduction of SQL Injection Vulnerabilities in OpenHIS

View Repository
1 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE number:

CVE-2024-46532

vendor:

上海顶想信息科技有限公司(https://www.kancloud.cn/)

product:

互联网医疗系统(医疗门诊OpenHIS)

version:

V1.0

affected component:

https://github.com/1638824607/OpenHIS?tab=readme-ov-file

Reproduction of SQL Injection Vulnerabilities in OpenHIS

Vulnerabilities:

OpenHIS-master/Application/His/Controller/PayController.class.php

Vulnerability code:

root@kitploit:~
public function refund()
{
    $paylog_id = I('get.paylog_id',0);

    $amount = I('post.amount','all');//all就是是全部
    $adm_uid = I('post.adm_uid',0);//all就是是全部
    $adm_memo = I('post.adm_memo','退款');//all就是是全部

    if(!$paylog_id||!$amount)$this->resJSON(1,'参数缺失:paylog_id or amount');

    #todo 这里需要添加功能权限,无权限不能使用

    $sql = "SELECT a.*,b.hospital_id,b.type_id,b.order_code,b.ol_pay_part,b.amount,b.patient_id FROM ".$this->tab_pre."his_care_paylog a LEFT JOIN ".$this->tab_pre."his_care_pkg b ON a.pkg_id=b.id WHERE a.id='$paylog_id' LIMIT 1";

    $r = $this->db->query($sql);
    if(!$r)$this->resJSON(2,'paylog_id无效',$sql);

POC:

(Update:CVE certification has been passed, not provided at the moment. The problematic code snippets have been provided)

Download Tool