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

# Stacked

> Verified writeups for the Stacked machine of Hack The Box

# Stacked

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> Referer XSS → AWS Lambda + LocalStack RCE → custom 0day privesc</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Linux                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Difficulty       | Insane                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | Vector           | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | IP               | `10.10.11.112`                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Retirement date  | 2022-03-19                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Skills           | Virtual Hosting Enumeration Referer XSS Injection XSS - Creating JS file (accessing unauthorized resources) Checking/Reading mail through XSS injection AWS Enumeration Lambda Enumeration Creating a Lambda Function (NodeJS) Invoking the created lambda function RCE on LocalStack Abusing FunctionName Parameter (AWS) by exploiting XSS vulnerability (RCE) Finding and exploiting custom 0Day \[Privilege Escalation] Root FileSystem Access by abusing Docker |
</div>

## Writeups

| Language | Author      | Format | Link                                                       |
| -------- | ----------- | ------ | ---------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=L1w3DwxFHFg)        |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2022/03/19/htb-stacked.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=aWXfEDIYZu8)        |

## Skill resources

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

| Skill                       | Source      | Link                                                                                                              |
| --------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------- |
| Subdomain Enumeration       | HackTricks  | [Open](https://book.hacktricks.wiki/en/generic-methodologies-and-resources/external-recon-methodology/index.html) |
| Remote Code Execution (RCE) | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/command-injection.html)                                     |
| Cross-Site Scripting (XSS)  | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/xss-cross-site-scripting/index.html)                        |
| Cross-Site Scripting (XSS)  | PortSwigger | [Open](https://portswigger.net/web-security/cross-site-scripting)                                                 |

## Related skills worth mastering

Local File Inclusion (LFI) · Remote File Inclusion (RFI) · Shellshock (CVE-2014-6271) · SQL Injection · Server-Side Request Forgery

## If you liked this machine, try

* [RedCross](/en/htb/machines/linux/medio/redcross) — Linux, Medium
* [CrossFit](/en/htb/machines/linux/insano/crossfit) — Linux, Insane
* [AdmirerToo](/en/htb/machines/linux/dificil/admirertoo) — Linux, Hard
* [Holiday](/en/htb/machines/linux/dificil/holiday) — Linux, Hard
* [Schooled](/en/htb/machines/linux/medio/schooled) — 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:stacked" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Stacked — HTB Writeup Index","name":"Stacked","url":"https://rootea.es/en/htb/machines/linux/insano/stacked","inLanguage":"en","datePublished":"2022-03-19","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Subdomain Enumeration, Remote Code Execution (RCE), Cross-Site Scripting (XSS), Cross-Site Scripting (XSS)","isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"},"proficiencyLevel":"Insano"}`}
</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/insano/index"},{"@type":"ListItem","position":3,"name":"Insane","item":"https://rootea.es/en/htb/machines/linux/insano/index"},{"@type":"ListItem","position":4,"name":"Stacked","item":"https://rootea.es/en/htb/machines/linux/insano/stacked"}]}`}
</script>
