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

# Haircut

> Verified writeups for the Haircut machine of Hack The Box

# Haircut

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> SSRF curl upload → command injection → GNU Screen 4.5.0 privesc</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                              |
  | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Linux                                                                                                                                                                                          |
  | Difficulty       | Medium                                                                                                                                                                                         |
  | Vector           | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                 |
  | IP               | `10.10.10.24`                                                                                                                                                                                  |
  | Retirement date  | 2020-09-10                                                                                                                                                                                     |
  | Skills           | SSRF Attack (Server Side Request Forgery) Abusing a Curl implementation - Upload malicious PHP file Command Injection - Alternative Exploitation GNU Screen 4.5.0 - Local Privilege Escalation |
</div>

## Writeups

| Language | Author                   | Format | Link                                                       |
| -------- | ------------------------ | ------ | ---------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar**              | Vídeo  | [Open](https://www.youtube.com/watch?v=9gurBGeazok)        |
| 🇪🇸 ES  | **El Pingüino de Mario** | Vídeo  | [Open](https://www.youtube.com/watch?v=oBUAtZ_3db4)        |
| 🇬🇧 EN  | **0xdf**                 | Texto  | [Open](https://0xdf.gitlab.io/2020/09/10/htb-haircut.html) |
| 🇬🇧 EN  | **IppSec**               | Vídeo  | [Open](https://www.youtube.com/watch?v=9ZXG1qb8lUI)        |

## Skill resources

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

| Skill                       | Source      | Link                                                                                               |
| --------------------------- | ----------- | -------------------------------------------------------------------------------------------------- |
| OS Command Injection        | PortSwigger | [Open](https://portswigger.net/web-security/os-command-injection)                                  |
| Server-Side Request Forgery | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/ssrf-server-side-request-forgery/index.html) |

## Related skills worth mastering

Remote Code Execution (RCE) · Cross-Site Scripting (XSS)

## If you liked this machine, try

* [Forge](/en/htb/machines/linux/medio/forge) — Linux, Medium
* [Fortune](/en/htb/machines/linux/insano/fortune) — Linux, Insane
* [Love](/en/htb/machines/windows/facil/love) — Windows, Easy
* [Minion](/en/htb/machines/windows/insano/minion) — Windows, Insane
* [FluxCapacitor](/en/htb/machines/linux/medio/fluxcapacitor) — Linux, Medium

***

## 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:haircut" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Haircut — HTB Writeup Index","name":"Haircut","url":"https://rootea.es/en/htb/machines/linux/medio/haircut","inLanguage":"en","datePublished":"2020-09-10","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"OS Command Injection, Server-Side Request Forgery","isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"},"proficiencyLevel":"Medio"}`}
</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/medio/index"},{"@type":"ListItem","position":3,"name":"Medium","item":"https://rootea.es/en/htb/machines/linux/medio/index"},{"@type":"ListItem","position":4,"name":"Haircut","item":"https://rootea.es/en/htb/machines/linux/medio/haircut"}]}`}
</script>
