Critical Flaw Found In Backtrack Linux
chicksdaddy writes "Threatpost is reporting on a critical security flaw in the latest version of Backtrack Linux, a popular distribution that is used by security professionals for penetration testing. The previously undiscovered privilege escalation hole was discovered by a student taking part in an InfoSec Institute Ethical Hacking class, according to the post on the group's Web site. 'The student in our ethical hacking class that found the 0day was using backtrack and decided to fuzz the program, as well as look through the source code,' wrote Jack Koziol, the Security Program Manager at the InfoSec Institute. 'He found that he could overwrite config settings and gain a root shell.' An unofficial patch is available from InfoSec Institute. Koziol said that an official patch is being tested now and is expected shortly."
I heard you like pen testing so I put a pen test on your pen test!
Faster! Faster! Faster would be better!
That's what I clearly heard the admin of the threatpost's web server just exclaim.
I am Slashdot. Are you Slashdot as well?
The program in question is wicd, which is a wireless network manager. And it's not like BT is a particularly secure distro - it's for pentesting, so most of it's functionality is only useful if you run as root...
A fair number of the tools on backtrack have to be run as root. If you use the LiveCD or boot it from a flash drive (which is what I usually do), it instructs you to log in as root (with the default password of toor). Unless you were running Backtrack on a server with unpriviledged users, I don't see what the issue is. Just don't open any ports and you'll be fine (and if you're pentesting, why would you - you don't want to be detected).
Backtrack repository has the fix already.
"If any question why we died, Tell them because our fathers lied."
Ya, I foolishly did. Don't do it.
GENERATION 9882463: The first time you see this, copy it into your sig & add a random number to the generation.
Yeah, I can't believe people fall for th
Oh look. It is a picture of two kittens who are playfully romping in the grass. This picture is really cute.
What? No, it's
So cute!
Random Thoughts From A Diseased Mind (Not For Dummies)
Oh noes, someone has pwned my LiveCD linux distribution, running entirely from a ramdisk in memory! Whatevers shall I do?!
*reboots*
Why oh why do people still make and use systems/apps/tools/interfaces/etc that use in-band signaling and thus require that their inputs be "sanitized"? Can't everyone see that sanitizing inputs is a fool's errand? You'll ALWAYS miss something, or the next version will have a feature you forgot to screen for, or something. In-band signaling is BAD BAD BAD and any system that uses it is doomed to an endless series of X-injection attacks.
For example (and yes, I realize this has nothing to do with SQL, it's just an example) don't even try to sanitize your SQL inputs; use bound parameters instead - not only is it guaranteed 100% safe, it's easier and faster too! As much as I love XKCD, little Bobby Tables really screwed the pooch on that one.
Remember, folks: when it comes to any sort of in-band signaling: JUST SAY NO. If you think you need to sanitize your inputs, you're doing something completely wrong. Stop and figure out what it is, and figure out how to do it right; don't just throw in some half-assed regex or character translation/stripping or whatever and hope that no one is cleverer than you are.
Is that the autobiography,
Of AC? Cuz if you ever fuck with me,
You'll get pwned, by a drunken dope brotha with who will smotha,
Got root on that muthafucka!
Straight Outta Compton!
Tired of the muthafuckin' hackin,
...I'm sorry, I'm too drunk to finish it, but Fuck UAC! F-F-F-fuck UAC! :)
Sweatin' my rig while I spider Imageshack, a nd
DMCA-ing me, and for what?
Maybe it's because I kick so much butt,
You need to be able to send arbitrary Dbus messages, so you need either local access or to remotely compromise the system (in which case you already won). This article is ridiculous and much ado about nothing.
Next headline: Professional penetration tester got penetrated thanks to a privilege escalation hole.
non-issue. According to the advisory, this particular issue "Spawns a root shell [and h]as not been tested for potential remote exploitation vectors." As has been stated multiple times earlier already, BT is generally used as root locally and (until someone determines remote exploitability) this is a local-only exploit. TFS is wrong. This is not a "critical flaw in BT," but a flaw in WICD that allows privilege escalation. Still something that definitely needs fixed, but if someone has local access to your box, you can pretty much assume they already have root.
From the official response (http://www.backtrack-linux.org/forums/showthread.php?t=49411):
This post is a bad example of a bug report, for several reasons.
1) The title of this vulnerability should probably be "WICD Priv Escalation". As such, it should probably be reported to the WICD developers, as opposed to the BackTrack development team. If you still felt the bug report should be posted to us, the right place to post it would be "BackTrack bugs" (although it is not), or even better, our redmine ticket system.
2) Giving the pre-requisites for the exploit to function would be helpful. In this case, you would need to create a non root user in BackTrack, have a remote attacker access BT with that non privileged account or have an unprivileged shell from a previous attack against another service, and then have that user attempt to connect to a wireless access point (assuming wicd is running as root). This is far from the default configuration in BackTrack, which further negates the title of this vulnerability.
3) Making a mountain out of a molehill for the purpose of promoting a product or service is generally frowned upon by the security industry, especially when one already has a bad reputation.
4) Once this bug is tended to by the WICD developers, we will use their official patch rather than patching our packages using untrusted sources.
I use a CD to boot BackTrack. It's always safest if you do this on a machine with a disable hard drive.
If you're an infosec pro, it pays to use belt and suspenders.
It was a honor to read that.
1. Advertise 0day on Linux distro
2. Publish unofficial "fix" with trojan payload
3. Pwn all the computers of the world's most paranoid hackers
4. ?
5. Profit!!!!
I am literally 3000 tokens away from the chaotic crossbow --Stephen
It was a honor to create. Since we had 43 million in venture capital it is only fair we provide the source code for the research we have thus far produced. Entire source below.
int main(void) // not yet implemented
{
FILE* data = fopen ("datafile.bin", "r");
if (!data) return 1;
#if 0
interpretData();
#endif
return 0;
}
datafile: http://pastebin.com/dPQVppAc
Thanks.
Seems to me Infosec are trying to mis-represent this bug in order to get traffic to their website. Calling it it a "Backtrack 0day" is a blatant attempt to make this into more than it is for the sake of self glorification. People who actually understand security see right past this, which sheds a bad light on the Infosec Institute.
news at goatse
This is a Wicd exploit, and accordingly it affects ALL the distros Wicd ships on. Futhermore, Wicd runs as root through the dbus daemon, which the exploit is in. That is open to all users. Please don't downplay the seriousness of this bug, despite the misleading title.
lol
suckers
' An unofficial patch is available from InfoSec Institute. Koziol said that an official patch is being tested now and is expected shortly." Linux will always be more secure than macs.
To be academically correct, you should fclose() the file. :P
>Backtrack Linux, a popular distribution that is used by script kiddies
Fixed that for you
If this happened to a Microsoft OS the long knives would be out, but it's Linux so everyone bends over backwards to make excuses for it.
Pentester, hack thyself.
Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?