> ## Documentation Index
> Fetch the complete documentation index at: https://rootea.es/llms.txt
> Use this file to discover all available pages before exploring further.

# Oz

> Verified writeups for the Oz machine of Hack The Box

# Oz

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> SQLi + SSTI RCE → Knockd → Portainer reset → docker privesc</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                                                        |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Operating system | Linux                                                                                                                                                                                                                                                                    |
  | Difficulty       | Hard                                                                                                                                                                                                                                                                     |
  | Vector           | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                                                                                           |
  | IP               | `10.10.10.96`                                                                                                                                                                                                                                                            |
  | Retirement date  | 2019-01-12                                                                                                                                                                                                                                                               |
  | Skills           | SQL Injection (SQLI) Server Side Template Injection (SSTI) (RCE) Abusing Knockd Network enumeration techniques using bash oneliners PIVOTING Portainer 1.11.1 Exploitation - Resetting the admin password Creating a new container from Portainer (Privilege Escalation) |
</div>

## Writeups

| Language | Author      | Format | Link                                                  |
| -------- | ----------- | ------ | ----------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=nqGs42yM75c)   |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2019/01/12/htb-oz.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=yX00n1UmalE)   |

## Skill resources

Curated documentation for each technique listed in the *Skills* column above. Sources: HackTricks, GTFOBins, PortSwigger, etc.

| Skill                                 | Source      | Link                                                                                       |
| ------------------------------------- | ----------- | ------------------------------------------------------------------------------------------ |
| SSTI (Server-Side Template Injection) | PortSwigger | [Open](https://portswigger.net/web-security/server-side-template-injection)                |
| SQL Injection                         | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/sql-injection/index.html)            |
| SQL Injection                         | PortSwigger | [Open](https://portswigger.net/web-security/sql-injection)                                 |
| Port Forwarding / Pivoting            | HackTricks  | [Open](https://book.hacktricks.wiki/en/generic-hacking/tunneling-and-port-forwarding.html) |
| Remote Code Execution (RCE)           | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/command-injection.html)              |

## Related skills worth mastering

Cross-Site Scripting (XSS) · Local File Inclusion (LFI) · Remote File Inclusion (RFI) · Shellshock (CVE-2014-6271)

## If you liked this machine, try

* [GoodGames](/en/htb/machines/linux/facil/goodgames) — Linux, Easy
* [Toolbox](/en/htb/machines/windows/facil/toolbox) — Windows, Easy
* [Catch](/en/htb/machines/linux/medio/catch) — Linux, Medium
* [Europa](/en/htb/machines/linux/medio/europa) — Linux, Medium
* [Nightmare](/en/htb/machines/linux/insano/nightmare) — Linux, Insane

***

## Comments & tips

Did the official writeup not work? Found a smarter trick? Share it here — comments live in [GitHub Discussions](https://github.com/FFuson/HTB_Writeups/discussions).

<div className="rootea-giscus-wrap" data-giscus-term="machine:oz" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Oz — HTB Writeup Index","name":"Oz","url":"https://rootea.es/en/htb/machines/linux/dificil/oz","inLanguage":"en","datePublished":"2019-01-12","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"SSTI (Server-Side Template Injection), SQL Injection, SQL Injection, Port Forwarding / Pivoting, Remote Code Execution (RCE)","isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"},"proficiencyLevel":"Difícil"}`}
</script>

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://rootea.es/en"},{"@type":"ListItem","position":2,"name":"Linux","item":"https://rootea.es/en/htb/machines/linux/dificil/index"},{"@type":"ListItem","position":3,"name":"Hard","item":"https://rootea.es/en/htb/machines/linux/dificil/index"},{"@type":"ListItem","position":4,"name":"Oz","item":"https://rootea.es/en/htb/machines/linux/dificil/oz"}]}`}
</script>
