mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-15 07:03:38 +08:00
49 lines
1023 B
YAML
49 lines
1023 B
YAML
id: privesc-choom
|
|
|
|
info:
|
|
name: choom - Privilege Escalation
|
|
author: daffainfo
|
|
severity: high
|
|
description: |
|
|
choom is a command-line utility in Linux that allows users to change the memory limits of a process. It can be used for privilege escalation by manipulating the memory limits of a process to gain elevated privileges.
|
|
reference:
|
|
- https://gtfobins.github.io/gtfobins/choom/
|
|
metadata:
|
|
verified: true
|
|
tags: code,linux,choom,privesc
|
|
|
|
self-contained: true
|
|
code:
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
whoami
|
|
|
|
#SUID
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
choom -n 0 whoami
|
|
|
|
#SUDO
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
sudo choom -n 0 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 |