id: piwigo-panel

info:
  name: Piwigo Login Panel - Detect
  author: daffainfo
  severity: info
  description: Piwigo login panel was detected.
  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:piwigo:piwigo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: piwigo
    product: piwigo
    shodan-query: http.favicon.hash:540706145
    fofa-query:
      - title="piwigo"
      - icon_hash=540706145
    google-query:
      - Powered by Piwigo
      - powered by piwigo
  tags: panel,piwigo,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/identification.php"

    stop-at-first-match: true
    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'content="Piwigo'
          - '>Piwigo</a>'
          - '<body id=theIdentificationPage>'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'jquery\.min\.js\?v([0-9.]+)">'
# digest: 4b0a00483046022100c1594971533d3c51ef49677ce44992618b111fd6c5311e0aad6e7667dc149ff0022100fefd42fbb54a6be1e28f17935377d415ac7618551e9f8057c53d830a8c75829d:922c64590222798bb761d5b6d8e72950