id: searchreplacedb2-exposure

info:
  name: Safe Search Replace Exposure
  author: kazet
  severity: high
  description: Safe Search Replace is exposed leaking internal info.
  reference:
    - https://interconnectit.com/search-and-replace-for-wordpress-databases/
    - https://github.com/interconnectit/Search-Replace-DB
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"searchreplacedb2.php"
    fofa-query: body="searchreplacedb2.php"
  tags: misconfig,searchreplacedb2,exposure,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Database details"
          - "Safe Search Replace"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100b86c939931fedb3502245929f42267f90508ef62878167bd8108cd8aaef346c2022100939d5fd36dc0e7ccbc9f3a092f6acdeeb4c97bd822f462776097e8ccf2a9bf6a:922c64590222798bb761d5b6d8e72950