id: prestashop-detect

info:
  name: PrestaShop Tech Detection
  author: pdteam
  severity: info
  classification:
    cpe: cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: prestashop
    product: prestashop
    shodan-query: http.component:"PrestaShop"
  tags: tech,cms,prestashop

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: regex
        part: body
        regex:
          - Powered by <a\s+[^>]+>PrestaShop
          - <!-- /Block [a-z ]+ module (?:HEADER|TOP)?\s?-->
          - <!-- /Module Block [a-z ]+ -->
        condition: or
# digest: 490a00463044022057a58925d45c465d1405f5a13d75af7e93f4619835bdd12e12f8db7f35c5598b02206d9aad3f8e8acdb6012fad59ecf16bb0c16936e9fa8481418544f21872e6e288:922c64590222798bb761d5b6d8e72950