2021-10-26 12:09:26 +00:00
|
|
|
id: gitlab-api-user-enum
|
2021-06-16 16:09:35 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: GitLab - User Information Disclosure Via Open API
|
2022-04-22 10:38:41 +00:00
|
|
|
author: Suman_Kar
|
2021-06-18 08:22:48 +00:00
|
|
|
severity: medium
|
2024-01-03 06:08:41 +00:00
|
|
|
description: GitLab - User Information is exposed Via Open API.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40158
|
2022-03-02 07:35:29 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 100
|
2022-03-02 07:35:29 +00:00
|
|
|
shodan-query: http.title:"GitLab"
|
2022-01-04 19:34:16 +00:00
|
|
|
tags: gitlab,enum,misconfig,disclosure
|
2021-06-16 16:09:35 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
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
|
2021-10-26 12:09:26 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-06-16 16:09:35 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
2021-10-26 12:09:26 +00:00
|
|
|
condition: and
|
2021-06-16 16:09:35 +00:00
|
|
|
regex:
|
|
|
|
- "username.*"
|
2021-06-18 08:20:34 +00:00
|
|
|
- "id.*"
|
|
|
|
- "name.*"
|
|
|
|
|
|
|
|
- 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
|
2024-01-15 11:49:24 +00:00
|
|
|
# digest: 4b0a00483046022100cfe7252b0f61b2faaf1314487eb262e3651531b78cb55786e9b4961e8a82c6c4022100efc95e031581376c42c4848a5fcec0d0009fba3bed5de8c986e63e1a37e1ea2f:922c64590222798bb761d5b6d8e72950
|