Shocker attack path and techniques
By Daniel Dayan ยท Updated
Shocker is an easy Linux machine on Hack The Box that I solved myself. It maps to the technique hubs Command Injection and RCE; Sudo Misconfiguration.
Overview
Shocker is an easy Linux machine from Hack The Box that I tagged with Exploiting-NOPASSWD and Exploiting-shellshock. Shocker counts toward the CWEE practice list in the ZeroBox catalog.
| Platform | Hack The Box |
|---|---|
| Operating system | Linux |
| Difficulty | Easy |
| Walkthroughs | IppSec video walkthrough available |
| Relevant for | CWEE |
Attack path summary
Shocker, while fairly simple overall, demonstrates the severity of the renowned Shellshock exploit, which affected millions of public-facing servers.
Tags
Exploiting-NOPASSWD Exploiting-shellshock
Techniques explained
- Command Injection and RCE: Command injection occurs when an application passes input to a system shell. Shocker matches it by the tag Exploiting-shellshock; 58 catalog machines practise it, 18 of them solved by me.
- Sudo Misconfiguration: Shocker matches it by the tag Exploiting-NOPASSWD; 23 catalog machines practise it, 8 of them solved by me.
Where it fits
- CWEE machine list: Shocker is one of 34 easy machines on a list of 82, and I solved 8 of the 82.
- Shocker is one of 169 easy Hack The Box machines in the catalog, 124 of them on Linux, and I solved 23 of the 169.
Related solved machines
Other machines I solved that share tags, a technique hub or a practice list with Shocker.
- Nibbles (HTB Linux Easy), shares Exploiting-NOPASSWD
- Bashed (HTB Linux Easy), both are on the CWEE list
- Blocky (HTB Linux Easy), both are on the CWEE list
- Vaccine (HTB Linux Very Easy), both are on the CWEE list
Related
- Certification: CWEE machines (82)
- Technique: Command Injection and RCE (58 machines)
- Technique: Sudo Misconfiguration (23 machines)
- Guides: HTB vs TryHackMe, HTB progress tracker
- All machines: Hack The Box and TryHackMe directory
Track Shocker in ZeroBox.
Log your Shocker progress, notes and flags offline in your browser, and follow the pentest methodology checklist.
Shocker belongs to Hack The Box; this page contains only my own notes.