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

# Schooled

> Verified writeups for the Schooled machine of Hack The Box

# Schooled

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> Moodle stored XSS → CVE-2020-14321 manager → plugin install RCE</p>

<div className="cve-row"><span className="cve-row-label">CVE / Bulletins:</span> <a className="cve-chip" href="https://nvd.nist.gov/vuln/detail/CVE-2020-14321" target="_blank" rel="noopener">CVE-2020-14321 ↗</a></div>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Linux                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | Difficulty       | Medium                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | Vector           | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | IP               | `10.10.10.234`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Retirement date  | 2021-09-11                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Skills           | VHost Brute Force Moodle Enumeration Moodle - Stored XSS Stealing a teacher's session cookie Privilege escalation from teacher role into manager role to RCE \[CVE-2020-14321] Elevating our privilege to Manager in Moodle - User Impersonation Mass Assignment Attack - Enable Full Permissions Giving us the ability to install a plugin Achieving remote command execution through installation of a malicious Plugin Enumerating the database once we have gained access to the system Cracking Hashes Abusing sudoers privilege (pkg install package) \[Privilege Escalation] |
</div>

## Writeups

| Language | Author      | Format | Link                                                        |
| -------- | ----------- | ------ | ----------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=HNHvMgQwHQM)         |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2021/09/11/htb-schooled.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=bUfZlBMFJ2I)         |

## Skill resources

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

| Skill                            | Source      | Link                                                                                         |
| -------------------------------- | ----------- | -------------------------------------------------------------------------------------------- |
| Cracking Hashes (hashcat / John) | HackTricks  | [Open](https://book.hacktricks.wiki/en/generic-methodologies-and-resources/brute-force.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

* [Undetected](/en/htb/machines/linux/medio/undetected) — Linux, Medium
* [CrossFit](/en/htb/machines/linux/insano/crossfit) — Linux, Insane
* [Holiday](/en/htb/machines/linux/dificil/holiday) — Linux, Hard
* [Joker](/en/htb/machines/linux/dificil/joker) — Linux, Hard
* [Stacked](/en/htb/machines/linux/insano/stacked) — 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:schooled" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Schooled — HTB Writeup Index","name":"Schooled","url":"https://rootea.es/en/htb/machines/linux/medio/schooled","inLanguage":"en","datePublished":"2021-09-11","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Cracking Hashes (hashcat / John), 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":"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":"Schooled","item":"https://rootea.es/en/htb/machines/linux/medio/schooled"}]}`}
</script>
