| Title | The Earnings and Expense Tracker Application has sql injection vulnerabilities |
|---|
| Description | Users can construct malicious statements in manage_user.php for sql injection because the id parameter in the code is completely controllable and is concatenated directly into the sql statement for execution
https://github.com/web-zxl/img/blob/main/4.png
Reusing the points contained in the file in index.php, the file contains the manage_user.php file, which assigns page a value of manage_user
https://github.com/web-zxl/img/blob/main/1.png
https://github.com/web-zxl/img/blob/main/2.png
To sum up, we carefully construct the following statement, can complete the entire sql injection attack
Visit http://127.0.0.1/php-sqlite-expense-tracker/?page=manage_user&id=2%27union%20select%201,sqlite_version(),3,4,5;
https://github.com/web-zxl/img/blob/main/5.jpg
You can get the database version is 3.33.0 |
|---|
| Source | ⚠️ https://www.sourcecodester.com/php/16354/earnings-and-expense-tracker-app-using-php-and-sqlite3-source-code-free-download.html |
|---|
| User | aallll (UID 34396) |
|---|
| Submission | 03/31/2023 17:37 (3 years ago) |
|---|
| Moderation | 03/31/2023 21:40 (4 hours later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 224700 [SourceCodester Earnings and Expense Tracker App 1.0 manage_user.php ID sql injection] |
|---|
| Points | 20 |
|---|