HackTheBox - Devzat

IppSec · Beginner ·🔧 Backend Engineering ·4y ago

Key Takeaways

Finds command injection vulnerability in a GoLang webserver on a Linux box

Original Description

00:00 - Intro 01:15 - Start of nmap 03:00 - Poking at the SSH Chat Application 05:10 - Running a VHOST Scan and discovering pets.devzat.htb 08:30 - Discovering pets.devzat.htb doesn't have a 404 and is a golang webserver 10:55 - Fuzzing the user input on pets 14:10 - Webapp ignores when a semicolon is at the end of user input, indication to command injection [MasterRecon] 16:20 - Using Gobuster to discover the .git directory and working around the issue of the box having no 404 errors. Use git-dumper to extract. 19:00 - Doing some light source code analysis on the Go Binary 23:15 - Showing it is also an LFI Vulnerability, just incase command injection was patched 29:00 - Reverse shell returned, examining the git log of the files, don't see anything interesting 30:50 - Discovering from localhost we can login to chat as anyone, but messages are hidden on Reverse Shells. Switch to SSH and read the messages. 36:40 - Looking for an InfluxDB vulnerability via exploit-db, changelog, and synk 39:40 - Going to git, and pulling up the issue created for this issue so we can understand how to exploit it 41:30 - Using JWT.IO to create a token with a blank signature 45:20 - Testing our authentication bypass with curl, then creating a bash script to make it a bit easier for us to run queries. 47:00 - Using the HTTP API of InfluxDB to show databses, tables, and dump data to get catherines password 53:20 - Using the find command to find files owned by catherine, to find a backup of the dev source code 55:40 - Finding all the files that differ between two directories via find, md5sum, and grep 59:00 - Discovering the hard coded password required for the FILE command in the new devzat application 1:00:40 - Grabbing roots SSH Key via an LFI in the FILE Command
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from IppSec · IppSec · 0 of 60

← Previous Next →
1 HHC2016 - Analytics
HHC2016 - Analytics
IppSec
2 HackTheBox - October
HackTheBox - October
IppSec
3 HackTheBox - Arctic
HackTheBox - Arctic
IppSec
4 HackTheBox - Brainfuck
HackTheBox - Brainfuck
IppSec
5 HackTheBox - Bank
HackTheBox - Bank
IppSec
6 HackTheBox - Joker
HackTheBox - Joker
IppSec
7 HackTheBox - Lazy
HackTheBox - Lazy
IppSec
8 Camp CTF 2015 - Bitterman
Camp CTF 2015 - Bitterman
IppSec
9 HackTheBox - Devel
HackTheBox - Devel
IppSec
10 Reversing Malicious Office Document (Macro) Emotet(?)
Reversing Malicious Office Document (Macro) Emotet(?)
IppSec
11 HackTheBox - Granny and Grandpa
HackTheBox - Granny and Grandpa
IppSec
12 HackTheBox - Pivoting Update: Granny and Grandpa
HackTheBox - Pivoting Update: Granny and Grandpa
IppSec
13 HackTheBox - Optimum
HackTheBox - Optimum
IppSec
14 HackTheBox - Charon
HackTheBox - Charon
IppSec
15 HackTheBox - Sneaky
HackTheBox - Sneaky
IppSec
16 HackTheBox - Holiday
HackTheBox - Holiday
IppSec
17 HackTheBox - Europa
HackTheBox - Europa
IppSec
18 Introduction to tmux
Introduction to tmux
IppSec
19 HackTheBox - Blocky
HackTheBox - Blocky
IppSec
20 HackTheBox - Nineveh
HackTheBox - Nineveh
IppSec
21 HackTheBox - Jail
HackTheBox - Jail
IppSec
22 HackTheBox - Blue
HackTheBox - Blue
IppSec
23 HackTheBox - Calamity
HackTheBox - Calamity
IppSec
24 HackTheBox - Shrek
HackTheBox - Shrek
IppSec
25 HackTheBox - Mirai
HackTheBox - Mirai
IppSec
26 HackTheBox - Shocker
HackTheBox - Shocker
IppSec
27 HackTheBox - Mantis
HackTheBox - Mantis
IppSec
28 HackTheBox - Node
HackTheBox - Node
IppSec
29 HackTheBox - Kotarak
HackTheBox - Kotarak
IppSec
30 HackTheBox - Enterprise
HackTheBox - Enterprise
IppSec
31 HackTheBox - Sense
HackTheBox - Sense
IppSec
32 HackTheBox - Minion
HackTheBox - Minion
IppSec
33 VulnHub - Sokar
VulnHub - Sokar
IppSec
34 VulnHub - Pinkys Palace v2
VulnHub - Pinkys Palace v2
IppSec
35 HackTheBox - Inception
HackTheBox - Inception
IppSec
36 Vulnhub - Trollcave 1.2
Vulnhub - Trollcave 1.2
IppSec
37 HackTheBox - Ariekei
HackTheBox - Ariekei
IppSec
38 HackTheBox - Flux Capacitor
HackTheBox - Flux Capacitor
IppSec
39 HackTheBox - Jeeves
HackTheBox - Jeeves
IppSec
40 HackTheBox - Tally
HackTheBox - Tally
IppSec
41 HackTheBox - CrimeStoppers
HackTheBox - CrimeStoppers
IppSec
42 HackTheBox - Fulcrum
HackTheBox - Fulcrum
IppSec
43 HackTheBox - Chatterbox
HackTheBox - Chatterbox
IppSec
44 HackTheBox - Falafel
HackTheBox - Falafel
IppSec
45 How To Create Empire Modules
How To Create Empire Modules
IppSec
46 HackTheBox - Nightmare
HackTheBox - Nightmare
IppSec
47 HackTheBox - Nightmarev2  - Speed Run/Unintended Solutions
HackTheBox - Nightmarev2 - Speed Run/Unintended Solutions
IppSec
48 HackTheBox - Bart
HackTheBox - Bart
IppSec
49 HackTheBox -  Aragog
HackTheBox - Aragog
IppSec
50 HackTheBox - Valentine
HackTheBox - Valentine
IppSec
51 HackTheBox - Silo
HackTheBox - Silo
IppSec
52 HackTheBox - Rabbit
HackTheBox - Rabbit
IppSec
53 HackTheBox - Celestial
HackTheBox - Celestial
IppSec
54 HackTheBox - Stratosphere
HackTheBox - Stratosphere
IppSec
55 HackTheBox - Poison
HackTheBox - Poison
IppSec
56 HackTheBox - Canape
HackTheBox - Canape
IppSec
57 HackTheBox - Olympus
HackTheBox - Olympus
IppSec
58 HackTheBox - Sunday
HackTheBox - Sunday
IppSec
59 HackTheBox - Fighter
HackTheBox - Fighter
IppSec
60 HackTheBox - Bounty
HackTheBox - Bounty
IppSec

Related AI Lessons

Chapters (21)

Intro
1:15 Start of nmap
3:00 Poking at the SSH Chat Application
5:10 Running a VHOST Scan and discovering pets.devzat.htb
8:30 Discovering pets.devzat.htb doesn't have a 404 and is a golang webserver
10:55 Fuzzing the user input on pets
14:10 Webapp ignores when a semicolon is at the end of user input, indication to com
16:20 Using Gobuster to discover the .git directory and working around the issue of
19:00 Doing some light source code analysis on the Go Binary
23:15 Showing it is also an LFI Vulnerability, just incase command injection was pat
29:00 Reverse shell returned, examining the git log of the files, don't see anything
30:50 Discovering from localhost we can login to chat as anyone, but messages are hi
36:40 Looking for an InfluxDB vulnerability via exploit-db, changelog, and synk
39:40 Going to git, and pulling up the issue created for this issue so we can unders
41:30 Using JWT.IO to create a token with a blank signature
45:20 Testing our authentication bypass with curl, then creating a bash script to ma
47:00 Using the HTTP API of InfluxDB to show databses, tables, and dump data to get
53:20 Using the find command to find files owned by catherine, to find a backup of t
55:40 Finding all the files that differ between two directories via find, md5sum, an
59:00 Discovering the hard coded password required for the FILE command in the new d
1:00:40 Grabbing roots SSH Key via an LFI in the FILE Command
Up next
This Cop Was Held Accountable For His Brutality! #police #lawyer
Hampton Law
Watch →