SQL Injection Vulnerability in Postfix Admin (CVE-2012-0811)
Summary
DEBIAN-CVE-2012-0811: Multiple SQL injection vulnerabilities in Postfix Admin (aka postfixadmin) before 2.3.5 allow remote authenticated users to execute arbitrary SQL commands via (1) the pw parameter to the pacrypt function, when mysql_encr... Affects postfixadmin versions < 2.3.5-1. Fixed in 2.3.5-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Postfix Admin is a web-based management tool for Postfix mail servers, allowing administrators to manage email accounts and domains easily. It provides a user-friendly interface and various features, including user authentication and backup functionalities. However, prior to version 2.3.5, Postfix Admin was susceptible to multiple SQL injection vulnerabilities, which could be exploited by authenticated users to execute arbitrary SQL commands.
Vulnerability Detail
Multiple SQL injection vulnerabilities in Postfix Admin (aka postfixadmin) before version 2.3.5 allow remote authenticated users to execute arbitrary SQL commands. The vulnerabilities arise from improper handling of user input, specifically in the 'pw' parameter of the 'pacrypt' function when 'mysql_encrypt' is configured, and other unspecified vectors used in backup files generated by 'backup.php'. This can lead to unauthorized data access, data manipulation, and potential system compromise.
How To Fix
Minimum fixed version
2.3.5-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade postfixadmin
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, consider restricting access to the Postfix Admin interface to trusted users only, and ensure that your database permissions are configured to limit the impact of any potential SQL injection attacks.
Conclusion
The SQL injection vulnerabilities in Postfix Admin prior to version 2.3.5 pose significant risks to users, allowing authenticated attackers to execute arbitrary SQL commands. It is crucial to update to the latest version to mitigate these risks and protect your system.
See every vulnerability recorded for postfixadmin →
FAQ
CVE-2012-0811 is a unique identifier for a specific vulnerability in Postfix Admin that allows SQL injection attacks.
Any user of Postfix Admin versions prior to 2.3.5 is at risk of exploitation through this vulnerability.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability can lead to unauthorized access to sensitive data, data manipulation, and potential system compromise.
Yes, you can restrict access to the Postfix Admin interface and ensure that your database permissions are tightly controlled to minimize the risk.
References
Related vulnerabilities
Recent vulnerabilities recorded for postfixadmin.