News for hackers. Stuff that matters.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Friday July 16, 2010 @09:35PM (#1523109)
Securing this beast should serve as a nice training course for any sysadmin; bonus points if you start handing out shell accounts to anonymous people in certain neighborhoods of EFNet.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by pavs on Friday July 16, 2010 @09:58PM (#1523146)
Just update packages to the latest, patched version. What so difficult about it?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Friday July 16, 2010 @10:03PM (#1523153)
If this is based on a popular distro, maybe; but if you wanted to loosen up a Linux box, you can build a freak from pieces that no one would find lineage for, much less a repo.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by pavs on Friday July 16, 2010 @10:26PM (#1523174)
umm no.

He specifically mentions that all the softwares are vulnerable:

"Its developers have spent hours stuffing it with broken, ill-configured, outdated, and exploitable software that makes it vulnerable to attacks."

Just replace them with the latest, patched, default configured version.

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by btilly on Saturday July 17, 2010 @12:27AM (#1523306)
What pieces of software do you replace? How do you replace it? Remember that it likely doesn't some with anything like apt to make this easy.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by kaens on Saturday July 17, 2010 @12:47AM (#1523322)
You wipe the disk and install OpenBSD.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Saturday July 17, 2010 @01:44AM (#1523366)
Good idea, but completely beside the point.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by davidw on Saturday July 17, 2010 @05:00AM (#1523526)
Why sit around replacing packages by hand when you're not really learning anything? The best fix for a system like this is to nuke it from orbit and reinstall. I mean, odds are, you'll miss something, and then spent hours fooling around after getting hacked, when you could have just spent your time concentrating on what's important: saving relevant data and configuration, reinstalling, and securing the updated configuration.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by rick_2047 on Saturday July 17, 2010 @07:37AM (#1523629)
This is a course in security and thats why the comment is completely beside the point.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by davidw on Saturday July 17, 2010 @10:38AM (#1523836)
The important point, which I did miss, is that it's not just a "security course", it's a course about how to break into things, so you need vulnerable programs. If you're not specializing in security stuff, the best course of action, is, however, to just keep your stuff up to date via apt or some similar mechanism.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by steveklabnik on Saturday July 17, 2010 @05:40PM (#1524700)
But in order to properly understand what you could be vulnerable to and the why/how, you should learn how to break into things. Yes, normally, you're working at a higher level of abstraction, but if you want to understand how things really work, you work at a lower level for a while.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by zachrose on Saturday July 17, 2010 @04:50AM (#1523514)
Or you could just get an iPad.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by milkshakes on Friday July 16, 2010 @10:13PM (#1523161)
There are other ways to update software..
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Friday July 16, 2010 @10:38PM (#1523186)
Riiight, downloading individual packages, libraries and kernels and building them from source. Which is why I thought it would be a good exercise, however very boring.

Running a Bastille script on the box would give you a quick TODO list. Pushing it to "production" and getting a few servers up and running, across version incompatibilities, would prove a bit more interesting. Running it under an older 2.4.x or 2.2.x kernel, doubly so.

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by joe_the_user on Sunday July 18, 2010 @01:45AM (#1525309)
I'm far from a security expert.

I have spent hundreds if not thousands of hours upgrading random packages in Linux for various reasons. Afterwards, I didn't feel any wiser in security or anything except how to build stuff (well, maybe a bit of systems stuff...).

If upgrading is main task here, what do you really learn? If upgrading isn't the main task here, what is?

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by ciupicri on Friday July 16, 2010 @11:06PM (#1523220)
Not update, but upgrade to another more secure distribution.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by nphase on Saturday July 17, 2010 @01:41AM (#1523363)
Or 4chan.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by sliverstorm on Friday July 16, 2010 @08:58PM (#1523063)
> Damn Vulnerable Linux - The most vulnerable and exploitable operating system ever!

Wait, they topped Windows 95 and Windows ME?

Is that even possible?

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by pjscott on Friday July 16, 2010 @09:10PM (#1523082)
I love how, on those OSes, you could freeze the whole thing solid with a three-byte program:

   cli   # clears interrupts
   loop: goto loop
This ballooned to a colossal four bytes if you put it in an EXE file, of course.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Friday July 16, 2010 @09:27PM (#1523100)
You could do it from debug.com but that one doesn't have labels, so you will need to use an explicit jmp.

  C:\hack\lisp\cl-gdata\base>debug
  -a
  13EA:0100 cli
  13EA:0101 jmp 101
  13EA:0103
  -g 0100
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by yesimahuman on Friday July 16, 2010 @09:22PM (#1523093)
Technically speaking, how would an OS avoid that issue, without breaking compatibility (unless that is acceptable)?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mahmud on Friday July 16, 2010 @09:32PM (#1523106)
You can't be bug compatible for things that violate the processor's protection protocol. Access to certain bits of the EFLAGS register is unavailable to unprivileged code. In fact. Just because you were allowed to raid and pillage by Microsoft for a few years doesn't mean it's the norm.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by derefr on Saturday July 17, 2010 @04:35AM (#1523502)
Sure you can—just let them stomp all over a virtualized processor/memory space.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by dfox on Saturday July 17, 2010 @07:06AM (#1523607)
You cannot meaningfully virtualize access to EFLAGS:IF. You can either emulate(/JIT) almost whole CPU or ignore this issue. And anyway, turning of interrupts is something that essentially does not make sense for user process, so it is better to just disallow that (which is what almost everything else but non-NT windows does)
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by JoeAltmaier on Saturday July 17, 2010 @09:39AM (#1523747)
It was usually used as an ultra- critical section. It would have been fine to simulate it as a scheduler-freeze for that process, preserving the meaning without getting hung up on the hardware implementation.

But instead, Intel decided to try to support actually messing with the interrupt enable state, resulting in years of highly-inefficient "solutions" e.g. trapping and simulating. Sigh.

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mfukar on Saturday July 17, 2010 @10:30AM (#1523824)
What's the (efficient) alternative?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by JoeAltmaier on Saturday July 17, 2010 @11:59AM (#1523987)
A big-hammer approach is to set thread affinity for your process to one hyperthread/processor. But that loses the opportunity for lovely parallelism.

A finer-grained approach is to have a flag bit that prevents preemption, perhaps even just preemption by threads of the same process. This is weaker than CLI because it doesn't prevent I/O callbacks etc from preempting; ideally those would be suspended as well for the process.

This assume a non-priviledge flag word i.e. user-mode code owns the "process flags", not the kernel.

My favorite solution is a "process signal register" in hardware. Its a wide register full of test-and-set bits, shared by threads of a process. They can be used to implement critical section, semaphore, event, even waiting on a timer. All without a trip thru the kernel - essentially zero-latency kernel primitives.

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mfukar on Saturday July 17, 2010 @01:05PM (#1524167)
Wouldn't an unprivileged EFLAGS-lookalike cause problems of the CLI-HLT persuasion?

And "process signal registers", while sounding attractive, aren't really a feasible alternative, given that the number of processes running even on uniprocessors are overwhelming, at least. Plus, if they're beyond CPU control, privilege issues arise again.

In short, yes, there are many alternatives, but the current model works, and not just for x86. And you know what engineers say..

Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by dfox on Sunday July 18, 2010 @11:57AM (#1525960)
I would say that not writing code that requires this. Only valid reason for wrapping something in CLI/STI is when you want to directly control some timing-critical hardware, which is something that simply does not belong into userspace. I would say that in most cases such code does not even belong to kernel, but into some interface controller of said hardware. Other cases are pretty well handled by normal APIs presented by kernel (mutexes, signal flags...).
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by JoeAltmaier on Saturday July 17, 2010 @09:37AM (#1523744)
Any OS on that early hardware had this problem, right?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by wwortiz on Friday July 16, 2010 @09:15PM (#1523085)
That actually sounds like a fun concept.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by morazyx on Saturday July 17, 2010 @07:08AM (#1523609)
Seems a decent educational tool too.. run in a virtual box and let your students go all out overflowing buffers and seeing the concepts in action. It comes with easy-to-follow guides.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by JoeAltmaier on Saturday July 17, 2010 @09:40AM (#1523748)
OK for learning about what has been solved; kind of hacking-101. BUt the exploits involved have all been fixed in the products in that distro. What to use for the advanced class?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by mfukar on Saturday July 17, 2010 @10:32AM (#1523831)
Refer to popular wargames. You could start here: http://www.smashthestack.org
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by datamonk on Saturday July 17, 2010 @04:31PM (#1524584)
i have it on my VM, can someone point me to where these guides are? KDE confuses me :). i will RTFM, I just need to find it first. thanks.
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by morazyx on Sunday July 18, 2010 @08:40AM (#1525661)
/dvl ;)
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by nsfmc on Saturday July 17, 2010 @10:30AM (#1523825)
an actual distribution
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by Spoutingshite on Saturday July 17, 2010 @07:08PM (#1524835)
It looks like a honeypot on steroids!
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by nhnifong on Saturday July 17, 2010 @10:09PM (#1525076)
Whats with all the grammatical errors on that site? Is it a joke?
Re:Damn Vulnerable Linux - The most vulnerable and exploitab... by known on Saturday July 17, 2010 @12:49PM (#1524123)