46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
id: gitlab-api-user-enum
|
|
|
|
info:
|
|
name: GitLab - User Information Disclosure Via Open API
|
|
author: Suman_Kar
|
|
severity: medium
|
|
reference:
|
|
- https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40158
|
|
metadata:
|
|
max-request: 100
|
|
shodan-query: http.title:"GitLab"
|
|
tags: gitlab,enum,misconfig,disclosure
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET /api/v4/users/{{uid}} HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Accept: application/json, text/plain, */*
|
|
Referer: {{BaseURL}}
|
|
|
|
payloads:
|
|
uid: helpers/wordlists/numbers.txt
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
condition: and
|
|
regex:
|
|
- "username.*"
|
|
- "id.*"
|
|
- "name.*"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "application/json"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4b0a00483046022100e91d88c0e5b8fc728356db398d1642b8928c8b06e2d15eb1b1d8aa7370e1ebe1022100f00de311f83fd9785f1655ac58104c405353183930d8524cc2802d7a98096df8:922c64590222798bb761d5b6d8e72950
|