first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
# ShowDoc 3.2.5 SQL Injection
[中文版本(Chinese version)](README.zh-cn.md)
ShowDoc is a tool greatly applicable for an IT team to share documents online. It can promote communication efficiency between members of a team.
ShowDoc version <= 3.2.5, an unauthenticated SQL injection issue is found and attacker is able to steal user password and token from SQLite database.
References:
- <https://github.com/star7th/showdoc/commit/84fc28d07c5dfc894f5fbc6e8c42efd13c976fda>
## Vulnerable environment
Execute following command to start a ShowDoc server 3.2.4:
```
docker compose up -d
```
After the server is started, browse `http://your-ip:8080` to see the index page of ShowDoc. Log in the portal using username `showdoc` and password `123456`.
## Exploit
Once a user has logged into ShowDoc, a user token is generated in the SQLite database. Compared to stealing a user's hashed password through SQL injectionuser token is a more useful target.
Before exploiting the issue, a CAPTCHA recognition library is required:
```
pip install onnxruntime ddddocr requests
```
Then use [this POC](poc.py) to extract the token:
```
python3 poc.py -u http://localhost:8080
```
![](1.png)
To test if the token is valid:
![](2.png)