|
Mambo SQL Injection Vulnerabilities
|
|
Secunia Advisory:
|
SA9796
|
|
|
Release Date:
|
2003-09-19
|
|
Popularity:
|
10,104 views
|
|
|
Critical:
|
 Highly critical
|
|
Impact:
|
Manipulation of data Exposure of system information Exposure of sensitive information
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | Mambo 4.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
Description: Multiple vulnerabilities have been identified in Mambo allowing malicious users to manipulate SQL queries and send SPAM anonymously.
1) Mambo fails to verify the "bid" parameter properly in "banners.php" allowing malicious people to conduct SQL injection. This can be exploited to write output from queries to a file if the attacker knows the path to the webroot and the webroot is writeable. It is then possible to retrieve the data via HTTP.
Example:
/mambo/banners.php?op=click&bid=100 UNION select password from mos_users where 1=1 into outfile '/path/to/file'
2) The "id" parameter isn't properly verified in "emailfriend/emailarticle.php" and "emailfriend/emailfaq.php" allowing malicious people to inject SQL code. An example has been provided, which emails the MD5 hashed password to an email address.
Example:
mambo/emailfriend/emailarticle.php?submit=submit&email=[email_adr]&youremail=[email adr]&id=100 UNION select username,email,password from mos_users where id=1
3) It is possible to send email anonymously using the "Sendmail" function in "contact.php". This could be exploited by spammers to SPAM anonymously.
Example:
mambo/contact.php?op=Sendmail&text=[message]&from=[I_don't_SPAM]&name=[Name]&email_to=[SPAM_me]&sitename=[SPAM_heaven.tld]
Issues 1 and 2 only affect Mambo on systems with MySQL 4.
Solution: Version 4.0.14 is not vulnerable to the SPAM issue.
http://prdownloads.sourceforge.net/mambo/MamboV4.0.14.tar.gz
The only current workaround to prevent the SQL injection is to use MySQL 3.
Provided and/or discovered by: lifofifo, hackingzone.org
Original Advisory: http://www.hackingzone.org/secviewarticle.php?id=11
|
|
|
Track this Secunia Advisory
|
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.
Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.
|
|
|
About this Secunia Advisory
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|