Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-48589 PoC — phpABook 安全漏洞

Source
Associated Vulnerability
Title:phpABook 安全漏洞 (CVE-2024-48589)
Description:phpABook是巴西Gilnei Moraes个人开发者的一个使用 PHP 和 MySQL 的简单地址/联系人管理系统。 phpABook v.0.9版本存在安全漏洞。攻击者利用该漏洞可以通过 index.php 中的 rol 参数执行任意代码。
Readme
# phpAbook 9.0i - Cross-Site Scripting (XSS) Vulnerability (CVE-2024-48589)

---

**Summary:**

A **Cross-Site Scripting (XSS)** vulnerability was discovered in the `rol` parameter of `index.php` or the path section in the phpAbook application. This vulnerability allows an attacker to inject arbitrary JavaScript code into a user's browser, potentially leading to:

- Disclosure of sensitive information, including session cookies
- Unauthorized actions within the application context

The issue arises due to improper validation and sanitization of user-supplied input.

---

**Impact:**

An attacker can craft a URL with a malicious script in the `rol` parameter or path section and trick a user into visiting the link or execute the link directly in the browser.

---

Proof of Concept (PoC):

Access the index.php page of the phpabook application.
![](attachments/pic1.png)

Append an XSS payload to the index.php URL. For example:
```
/abc"><script>alert(document.domain)</script>
```
![](attachments/pic2.png)

Another vulnerable parameter is rol, which can be found in the "Show All" tab.
![](attachments/pic3.png)

Inject the XSS payload into the rol parameter. For example:
```
rol=abc"><script>alert(document.domain)</script>
```
![](attachments/pic4.png)
File Snapshot

[4.0K] /data/pocs/421fb47318f7bd0baf8144e260708717cdb0eccf ├── [4.0K] attachments │   ├── [231K] pic1.png │   ├── [141K] pic2.png │   ├── [238K] pic3.png │   └── [144K] pic4.png └── [1.2K] README.md 1 directory, 5 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.