by pizza · 9y ago · 0 comments
Broadly, the basis for this is an understanding of how computers actually work - if you learned about it in school, the class would have started with Von Neumann vs Harvard architecture graduating to building a CPU from scratch (well, logic gates, anyway, possibly with Verilog), and followed by another class about writing an operating system; kernel, drivers, then a (rudimentary) user land - basic implementation of syscalls, a glibc-type library to make syscalls, basic shell on top of that. That knowledge and a perseverant attitude (getting exploits to work can involve trying to debug code with zero feedback).
As far as this hack goes, broken down into three separate pieces, the exploits should be understandable as being sandbox escapes, but for three different sandboxes (Browser, OS, VM). Sandboxes are implemented in code, the code is going to have bugs, and exploits are "merely" a case of figuring out how to use the bugs to your advantage. No one's made a totally hack-proof sandbox. Not Apple (this year's contest featured a touchbar takeover), not Google (Chrome's fallen in years past), apparently not Microsoft or VMware (nor Linux/Canonical/Ubuntu, either).
If you're interested in learning about this stuff, microcorruption is an online security CTF "game" that starts off fairly easily. https://microcorruption.com/login
The contest part of SANS' holiday hack challenge is over, but the game itself is still up. https://holidayhackchallenge.com/2016/
Rootme is another one. https://www.root-me.org/
(I'm sure there are many more out there, those are just the 3 that came to mind.)
http://www-inst.cs.berkeley.edu/~cs161/sp16/
Any bug is a potential exploit. That exploit may not get you very far but it can be chained with another which will get you further.
The principles are almost elegant. The details are mind numbing. Luckily, common exploits get collected into metasploit:
Script kiddies (Annoyingly Persistent Teenagers to quote Nick Weaver) generally use toolkits like metasploit.
https://www.youtube.com/watch?v=xkdPjbaLngE
where he describes the hack of the Nintendo Switch, because they shipped an old version of Webkit. It's pretty impressive to see how "just" Javascript can jump from browser to native.
The material is good but also the guy shows an amazing teaching technique .
I wish commercial tutorials producers would put such care to their courses.
* Hacking: The Art Of Exploitation
This is an excellent book. It's lab-oriented, so you will be getting hands-on experience with reverse engineering and exploiting software.
And: http://opensecuritytraining.info/
They have a graph of classes somewhere, and you can see "Oh I want to get to advanced exploitation, what should I take?" and you just follow along. Start with intro to x86, intermediary x86, then move on to the software vulnerability classes, life of a binary, etc.
Really, with only these skills alone, you can self-teach the rest of the way. There's a book called The Art Of Kernel Exploitation, if I'm remembering right, that would take you into a more advanced but more niche area, and it's really up to you where to go after you get the basis (just like with programming).
Do so. It was the first Bunnie book I purchased, and now I'm a lifelong fan owning all of his work.
If you haven't read his most recent book, "The Hardware Hacker", it's a must read.
A lot of them publish source code that demonstrates how the exploit worked, plus when paired with an open-source project that has a vulnerability you can see how that matches up to the target.
There's a large toolbox of techniques to learn, but in this fashion they're surprisingly well documented. Using these techniques you can find other exploits if you're creative.