ionice - Privilege Escalation
ID: privesc-ionice
Severity: high
Author: daffainfo
Tags: code,linux,ionice,privesc,local
Description
Section titled “Description”ionice is a command-line utility in Linux that is used to set or get the I/O scheduling class and priority for a program. It allows users to control the I/O priority of a process, which can be useful for managing system resources and improving overall system performance.
YAML Source
Section titled “YAML Source”id: privesc-ionice
info: name: ionice - Privilege Escalation author: daffainfo severity: high description: | ionice is a command-line utility in Linux that is used to set or get the I/O scheduling class and priority for a program. It allows users to control the I/O priority of a process, which can be useful for managing system resources and improving overall system performance. reference: - https://gtfobins.github.io/gtfobins/ionice/ metadata: verified: true max-request: 3 tags: code,linux,ionice,privesc,local
self-contained: truecode: - engine: - sh - bash source: | whoami
- engine: - sh - bash source: | ionice whoami
- engine: - sh - bash source: | sudo ionice 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: 4a0a00473045022100f63099618a33a6755740bd112d953eb59b420e929f0a29058df772aaca63cbb1022020ac0156520f2204525e680385f4b4109824df12aa37ea9060b9b72447b63662:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/privilege-escalation/linux/binary/privesc-ionice.yaml"