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

48 lines
1.4 KiB
YAML
Raw Normal View History

2024-01-22 13:29:57 +00:00
id: privesc-softlimit
info:
name: softlimit - Privilege Escalation
author: daffainfo
severity: high
description: |
The softlimit command is used in conjunction with the daemontools software to set resource limits for a process. It is commonly used to control the resource usage of a process, such as limiting its memory or CPU usage. The softlimit command helps in managing and controlling the resource consumption of a process, which can be useful for ensuring system stability and preventing resource exhaustion.
reference:
- https://gtfobins.github.io/gtfobins/softlimit/
metadata:
verified: true
tags: code,linux,softlimit,privesc
self-contained: true
code:
- engine:
- sh
- bash
source: |
whoami
- engine:
- sh
- bash
source: |
softlimit whoami
- engine:
- sh
- bash
source: |
sudo softlimit whoami
matchers-condition: and
matchers:
- type: word
part: code_1_response
words:
- "root"
negative: true
- type: dsl
dsl:
- 'contains(code_2_response, "root")'
- 'contains(code_3_response, "root")'
condition: or
# digest: 490a004630440220787613f207549b1c982719be3a49e956deaab5b6906ffbcd219dcd836cd2ff3d022075d2f5c3c83f8f35f91032d617e137d4e43b6bde96989e49c21d639cb60aef81:922c64590222798bb761d5b6d8e72950