id: phpwind-installer

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

http:
  - method: GET
    path:
      - '{{BaseURL}}/install.php?a=check'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Powered by phpwind</title>'
          - '安装'
        condition: and

      - type: word
        part: body
        words:
          - "You have installed. To reinstall, you need to clear the data/install.lock file"
        negative: true

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