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

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: 4b0a00483046022100a4310248fc42ae0422a16d01d719252136f4637c616c640a10faac5ffd468ba90221009fc83b3e23e390bb4b21d813b71b45112576563a2e959d2496f7cfbbe3dc108a:922c64590222798bb761d5b6d8e72950