id: prestashop-installer

info:
  name: Prestashop Installer Exposure
  author: tess
  severity: high
  description: Prestashop is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: prestashop
    product: prestashop
    shodan-query: title:"PrestaShop Installation Assistant"
  tags: misconfig,prestashop,exposure,install

http:
  - method: GET
    path:
      - '{{BaseURL}}/install/index.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>PrestaShop Installation Assistant</title>'
          - '<li>System configuration</li>'
          - '<li>Store installation</li>'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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