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,vuln

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"
          - "您已经安装过，需要重新安装请先删除data/install.lock文件"
        negative: true

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