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

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