(0Day) CentOS Web Panel ajax_mail_autoreply account SQL Injection Information Disclosure Vulnerability
The ajax_mail_autoreply.php script in CentOS Web Panel takes the account parameter and builds SQL queries from it without validating the input. An unauthenticated remote attacker could use this to read sensitive information with root privileges.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of CentOS Web Panel. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The account parameter is concatenated into SQL queries without validation or parameterisation.
Impact
An unauthenticated attacker could disclose sensitive information in the context of root; the advisory offers only network restriction as mitigation because no patch exists.
What the attacker needed
Network access to the panel; no authentication needed
The fix
The vendor did not patch it within the 120-day deadline, so the only suggested mitigation is to restrict access to the service to trusted machines via firewall rules or whitelisting.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The panel has a web page that looks up mail auto-reply settings by an account name. It pastes that name straight into a database command instead of treating it as plain text, so a crafted name can make the database reveal other data. No login is needed, and the database runs with high privileges, so the leak can be serious.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.