2022-03-04 04:44:51 +00:00
|
|
|
id: gitlab-uninitialized-password
|
2022-03-04 13:22:23 +00:00
|
|
|
|
2022-03-04 04:44:51 +00:00
|
|
|
info:
|
2022-03-04 13:22:23 +00:00
|
|
|
name: Uninitialized GitLab instances
|
2022-03-04 04:44:51 +00:00
|
|
|
author: GitLab Red Team
|
|
|
|
severity: high
|
|
|
|
description: |
|
|
|
|
Prior to version 14, GitLab installations required a root password to be
|
|
|
|
set via the web UI. If the administrator skipped this step, any visitor
|
|
|
|
could set a password and control the instance.
|
|
|
|
reference:
|
|
|
|
- https://gitlab.com/gitlab-org/gitlab/-/issues/211328
|
|
|
|
- https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5331
|
|
|
|
- https://docs.gitlab.com/omnibus/installation/#set-up-the-initial-password
|
2022-04-22 10:38:41 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2022-04-22 10:38:41 +00:00
|
|
|
shodan-query: http.title:"GitLab"
|
2022-03-04 13:50:03 +00:00
|
|
|
tags: gitlab,misconfig,unauth
|
2022-03-04 13:22:23 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-03-04 04:44:51 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/users/sign_in"
|
2022-03-04 13:22:23 +00:00
|
|
|
|
2022-10-07 21:27:25 +00:00
|
|
|
host-redirects: true
|
2022-03-04 04:44:51 +00:00
|
|
|
max-redirects: 2
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-03-04 04:44:51 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- 'Change your password'
|
|
|
|
- 'New password'
|
|
|
|
- 'Confirm new password'
|
2022-03-04 13:22:23 +00:00
|
|
|
condition: and
|
|
|
|
|
2022-03-04 04:44:51 +00:00
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'gitlab_session'
|
2022-03-04 13:22:23 +00:00
|
|
|
|
2022-03-04 04:44:51 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
2023-10-14 11:27:55 +00:00
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a004630440220255ddce1efef9c0c73f9b9e061ba0fac5010742090aaaaf8ef59cfd9f6d2a9f902204c29bbc43dbf8feb4e409ff27a27d2bde04ee07b042eef88e82a61217cbf4ffc:922c64590222798bb761d5b6d8e72950
|