Files
nuclei-templates/code/privilege-escalation/linux/binary/privesc-stdbuf.yaml

49 lines
1.2 KiB
YAML
Raw Normal View History

2024-01-22 18:59:57 +05:30
id: privesc-stdbuf
2023-12-13 22:07:24 +07:00
info:
name: stdbuf - Privilege Escalation
author: daffainfo
severity: high
2024-01-22 18:59:57 +05:30
description: |
The stdbuf command is used to modify the buffering operations of another command. It can be used to adjust the input/output buffering of a command, which can be useful for controlling the flow of data and improving the performance of certain operations.
reference:
- https://gtfobins.github.io/gtfobins/stdbuf/
2023-12-13 22:07:24 +07:00
metadata:
verified: true
max-request: 3
tags: code,linux,stdbuf,privesc,local
2023-12-13 22:07:24 +07:00
self-contained: true
code:
- engine:
- sh
- bash
source: |
2024-01-22 18:59:57 +05:30
whoami
2023-12-13 22:07:24 +07:00
- engine:
- sh
- bash
source: |
2024-01-22 18:59:57 +05:30
stdbuf -i0 whoami
2023-12-13 22:07:24 +07:00
- engine:
- sh
- bash
source: |
2024-01-22 18:59:57 +05:30
sudo stdbuf -i0 whoami
2023-12-13 22:07:24 +07:00
matchers-condition: and
matchers:
2024-01-22 18:59:57 +05:30
- type: word
part: code_1_response
words:
- "root"
negative: true
2023-12-13 22:07:24 +07:00
- type: dsl
dsl:
- 'contains(code_2_response, "root")'
- 'contains(code_3_response, "root")'
condition: or
# digest: 4a0a00473045022044c9d477bc49908bc0d4f73ddfe99855deac7b1000b8ebaf9f767ecc651da01602210089548a828bf5734329ae07791d0f488c2f5aa03715c28b85722fdcf48368c7e0:922c64590222798bb761d5b6d8e72950