id: magento-admin-panel

info:
  name: Magento Admin Login Panel - Detect
  author: TechbrunchFR,ritikchaddha
  severity: info
  description: |
    Magento admin login panel was detected.
  reference:
    - https://docs.magento.com/user-guide/stores/store-urls-custom-admin.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:magento:magento:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: magento
    product: magento
    shodan-query:
      - http.component:"Magento"
      - cpe:"cpe:2.3:a:magento:magento"
      - http.component:"magento"
  tags: magento,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}/admin'

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Magento"
          - "Admin Panel"
        condition: and
# digest: 490a0046304402200323e67f4d835c023cf4448b10e902d23cdbca15bcb8c59b91ce469a017567b802201347c75f17e30f633c2de385128e49b42b81a83dc161c9cc80d8f72434ef8615:922c64590222798bb761d5b6d8e72950