vbSEO – From XSS to Reverse PHP Shell

SS is not a big deal, or is it? On many occasions, I’ve seen this vulnerability being classified as useless, not serious, and being a low threat. What I’ve always had in mind is that it’s only the capabilities of the browser, and the hackers mind which sets the limit for a XSS attack.

It may seem impossible to do anything else other than stealing sessions, cookies and performing phishing, client side defacements etc. But take a look at the picture above, that is a reverse php shell automatically injected into the site, when a vBulletin administrator viewed a malicious linkback.
The vulnerability itself I’m referring to, is a 0day within vBSEO which exists within the administrator and moderator panel only. However, the attacker is able to inject persistent scripts via this linkback feature directly into the part of these panels handling these linkbacks.
In short, the attacker crafts a malicious HTML page as shown in the advisory. Then, the attacker clicks a link to the target forum with vBSEO installed, and when the target is reached, vBSEO performs a GET-request to the attacker’s malicious HTML page (if it’s served online and if RefBacks are enabled).
The title of this page is then loaded directly into the database, and an administrator can see it sanitized in the actual thread, but also in the admin and mod panel where the title is not sanitized at all, allowing the script to run.

What is actually possible?

After discovering and researching this vulnerability, I realised it was a fine case to do further studies on and then develop a XSS worm. Fortunately I got away from that idea due to the fact it could’ve been abused globally on forums with vBSEO installed. However, the idea itself was not bad so I began developing the payload aka the javascript, which would eventually inject a PHP payload via the nice plugin feature in vBulletin.
Initially, the XSS trojan I wrote should be able to do all of this silently without the user knowing, so instead of document.write being used, appendChild which uses DOM objects, was used instead. This took a bit more work in order to function better, but the result was that the visible window would not change to the affected user getting infected with this trojan.
When the user browses to, in this case “Moderate Linkbacks”, the script is executing as soon as the user hits that page. When this happens, the trojan checks whether infection has already happened once and if not, continues. Then an iframe is created outside the visible frames, where the adminhash and securitytoken (CSRF-token) is read and saved in a local variable in the browser.
Then a new form is injected into this iframe, which contains the adminhash and the securitytoken. The form itself contains the values needed to create a new and completely valid plugin which in this case, is PHP code. At this point, the script checks again if the user has already been infected and if not, the form is submitted, the plugin is created, and a cookie is set to prevent the script from going in loops.
Most administrators, would notice the broken lock icon in case they use HTTPS / SSL, and then they would view the source. The great thing about using javascript to create HTML objects, especially with “appendChild” etc. is that it is not visible. A debugger, such as Firebug shown in the picture above is needed, unless the admin finds the malicious javascript payload and reads what it does, but then it might be too late.
During the execution of the XSS trojan, a time-out is set. When time runs out, the XSS trojan will try to delete itself leaving almost no traces, besides the possible injected plugin, and the remains of the hidden iframe outside the frames which cannot be viewed due to the way HTML works in FireFox.
If the attacker was successful, and patient as well, he would eventually see that the target website had already connected back to retrieve the title, but also that another user had triggered the XSS Trojan which hopefully injected the PHP plugin specified by the attacker.
So what’s this tool I’ve been using during my presentation of this vulnerability? It’s a recently developed tool written in Python, where the payload is written in Javascript, freely available to anyone in the bottom of this blog. I recommend however, that a user of this tool looks inside the source code.

Is XSS a serious threat then?

Yes, it definitely is.
For a demonstration of the tool and this vulnerability, check either the YouTube or RapidShare link below.
Advisory: vBSEO 3.5.2 & 3.2.2 – Persistent XSS via LinkBacks
Advisory #2: vbSEO Multiple Vulnerabilities
EvilWebTool: EvilWebTool
YT Video:  http://www.youtube.com/watch?v=B6QAjB3kYec
HQ Video: http://rapidshare.com/files/445021103/vbseo_0day.mp4

0 comments to "vbSEO – From XSS to Reverse PHP Shell"

Post a Comment

Follow by Email

Search This Blog


8th Grade (3) A FREE GPRS TRICKS AIRTEL (24) Adsense (3) Air Battery (1) Aircel (12) Aircel3g free (7) Airtel (25) Airtel 3g (17) Altoids Tin Wallet (1) Android Zone (4) apple zone (2) Battery (1) BioDiesel (1) Biogas (2) blackberry zone (1) Boat (1) Bollywood movie review (1) Bolt (2) Bsnl (11) Bsnl 3g (12) Build a solenoid (1) Catapult (1) Cell Phone Controlled Door Opener (1) Clap switch (1) Cogeneration Project (1) Computer Project Ideas (1) computer tips (2) cricket (14) cricket zone (1) Download Latest songs (25) Electric bell (1) Electric car (1) Electronic (34) Electronics Engineering (12) Electroscope (1) Facebook (2) facebook tips (5) Free (19) Free calling (4) Free recharge (1) free sms (7) Free tv (17) Furniture (1) GENERAL INFORMATION (7) GENERAL TALK (40) Genrator (1) Globe (1) gmail (4) Google (2) Hacking (8) Heat Transfer project (1) Helicopter (2) Home Made Projects (64) Hotfile account free (9) Hydropower (1) idea (4) idea 3g (4) image (18) islamic program (1) Java (1) Kids Project (30) Knowledge (11) Leds (4) Lie Detector (1) Lighting (4) listen online songs and download (5) Maglev Train (1) MANUAL GPRS SETTINGS FOR ALL NETWORKS (2) Mini amplifier for Ipod's (1) mobile application (4) Mobile Codes (1) Mobile Review (9) Mobile Tricks (15) mobile videos (34) MTNL (8) MTS (2) nokia phone (6) online songs (1) Opera (1) opera mini trick (13) Operamini collections (1) paper wallet (3) Parachute (1) pc games (3) pc software (6) pc tips and trick (4) periscope (1) Phone line-powered flashlight (1) Picture box shelves (1) Pixie Pot (1) Proxy sections (4) Psp (1) RAPIDSHARE FREE GET (7) reliance (40) reliance 3g (17) Relience (1) Remote Car by pc (1) Robots (1) Rocket (2) Roller coaster (1) S - 40 jAVA zONE (5) Samsung Phones (1) Samsung secret codes (2) Sign Chair (1) Signal Processing and RF Design (1) SMS based control of Devices (1) Solar Projects (8) speak asia (4) splat monsters (1) Sponge sculptures (1) Stirling Engine (1) Tata docomo (24) tata docomo 3g (20) TATA DOCOMO FREE GPRS (22) Traffic Light Controller (1) Trick (37) Tv links (22) uc browser collection (6) uninor free gprs (1) unlock modeam (1) Vacuum and Power Brakes (1) Video songs (7) videocon (2) Virgen free gprs cdma and gsm (1) virgin (2) vodafone (10) vodafone 3g (5) Vodafone FREE GPRS (10) Volcono (1) Vortex Genrator (3) web seo (2) wifi trick (2) Wind Mill (1) WINDOWS MOBILE ZONE (1) Wooden toy trains (1) Word press (1) WordPress (1) Youtube ease (3)


Blog Archive