Vaccine attack path and techniques
By Daniel Dayan ยท Updated
Vaccine is a very easy Linux machine on Hack The Box that I solved myself. It maps to the technique hubs Cron Job and Scheduled Task Abuse; Network Service Enumeration; SQL Injection; Sudo Misconfiguration.
Overview
Vaccine is a very easy Linux machine from Hack The Box that I tagged with FTP, SQLi, Sudo and Tar Wildcard. Vaccine counts toward the HTB Starting Point and CWEE practice lists in the ZeroBox catalog.
| Platform | Hack The Box |
|---|---|
| Operating system | Linux |
| Difficulty | Very Easy |
| Relevant for | HTB Starting Point, CWEE |
Attack path summary
Extract archive via FTP, exploit SQL injection with sqlmap to obtain user hash, and abuse sudo vi to spawn root shell.
Tags
Techniques explained
- Cron Job and Scheduled Task Abuse: Scheduled jobs run unattended and frequently as root, so a writable script, a relative path or a wildcard in the command line can hand you privileges. Vaccine matches it by the tag Tar Wildcard; 8 catalog machines practise it, 2 of them solved by me.
- Network Service Enumeration: Vaccine matches it by the tag FTP; 49 catalog machines practise it, 16 of them solved by me.
- SQL Injection: Vaccine matches it by the tag SQLi; 27 catalog machines practise it, 3 of them solved by me.
- Sudo Misconfiguration: Vaccine matches it by the tag Sudo; 23 catalog machines practise it, 8 of them solved by me.
Where it fits
- HTB Starting Point machine list: Vaccine is one of 22 very easy machines on a list of 22, and I solved 14 of the 22.
- CWEE machine list: Vaccine is one of 4 very easy machines on a list of 82, and I solved 8 of the 82.
- Vaccine is one of 22 very easy Hack The Box machines in the catalog, 17 of them on Linux, and I solved 14 of the 22.
Related solved machines
Other machines I solved that share tags, a technique hub or a practice list with Vaccine.
- Appointment (HTB Linux Very Easy), shares SQLi
- Crocodile (HTB Linux Very Easy), shares FTP
- Fawn (HTB Linux Very Easy), shares FTP
- Pickle Rick (THM Linux Easy), shares Sudo
- Simple CTF (THM Linux Easy), shares SQLi
Related
- Track: HTB Starting Point machines (22)
- Certification: CWEE machines (82)
- Technique: Cron Job and Scheduled Task Abuse (8 machines)
- Technique: Network Service Enumeration (49 machines)
- Technique: SQL Injection (27 machines)
- Technique: Sudo Misconfiguration (23 machines)
- Guides: HTB vs TryHackMe, HTB progress tracker
- All machines: Hack The Box and TryHackMe directory
Track Vaccine in ZeroBox.
Log your Vaccine progress, notes and flags offline in your browser, and follow the pentest methodology checklist.
Vaccine belongs to Hack The Box; this page contains only my own notes.