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
2024-01-29 11:58:34 +00:00
max-request : 3
2024-01-31 23:11:31 +05:30
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")'
2024-01-22 16:20:01 +00:00
condition : or
2024-12-01 13:57:55 +00:00
# digest: 4b0a0048304602210085cba2a30005f4f9c23a11929f87585140347123e6bec9a5819aa7c245f601f7022100a3b46722f3fa1c936780bd46b5b1ab2003171ee49e74bab5877174a53fad9fab:922c64590222798bb761d5b6d8e72950