id: unauth-mercurial

info:
  name: Unauthenticated Mercurial Detect
  author: pussycat0x
  severity: high
  description: Mercurial repositories index is disclosed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Mercurial repositories index"
  tags: misconfig,unauth,mercurial

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Mercurial Repositories"
          - "Last modified"
        condition: and

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