HackTheBox - CrimeStoppers

IppSec · Beginner ·📊 Data Analytics & Business Intelligence ·8y ago

Key Takeaways

Exploits a PHP application vulnerability by setting an admin cookie and testing the $op parameter

Original Description

01:18 - Begin of Recon: Getting ubuntu version 04:00 - Navigating to the CrimeStoppers Page 05:15 - First Hint - Read The Source! 05:50 - 2nd Hint - No SQL Databases and playing with the upload form 07:55 - 3rd Hint - Setting Admin cookie to 1 to see whiterose.txt 09:00 - Explanation of PHP App and why I went down testing $op parameter 10:45 - Testing $op parameter, another hint what year is it? 12:20 - Finding out $op appends .php 13:05 - Using php b64 filter to view php files ("Read the source luke") 22:50 - Looking into PHP Wrappers to try to gain code execution 24:50 - Placing our PHP Script in a zip so we can reference it with zip://, also improperly upload it to the server 26:20 - Attempting to use the zip:// wrapper to execute our php script, then troubleshooting the bad upload. 30:30 - Easy way to copy binary data into BurpSuite (Base64) 34:10 - Getting a shell 37:18 - Downloading ThunderBird Directory and reading email + getting dom's password 46:20 - Begin of looking into Apache Rootkit (mod_rootme) 48:04 - Begin of using r2 (Radare) to analyze rootkit, basic intro 50:55 - Analyzing DarkArmy Function 55:30 - Grabbing the strings and using python to XOR them to get secret that allows root 58:35 - Get Root ##### BOX DONE 59:10 - Potential rabbit hole in the binary /var/www/html/whiterose.txt in the binary 01:04:20 - Second way to get root, looking around at file modification times to find FunSociety in logs
AI explanation not available for this lesson yet
This lesson is still being prepared for the AI tutor. In the meantime, explore lessons that are ready.
Browse explainer-ready lessons →

Playlist

Uploads from IppSec · IppSec · 41 of 60

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
▶ 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 Reads

📰
Am I over-engineering my analytics portfolio project?
Learn to balance complexity and simplicity in analytics portfolio projects to effectively demonstrate skills
Reddit r/artificial
📰
Data Governance vs. Data Quality: The Difference Shows Up on a Monday Morning
Understand the difference between data governance and data quality to improve AI trust and reduce costs
Medium · Data Science
📰
Data & AI Careers in the USA: A Practical Guide to Data Analyst, Data Scientist, ML & GenAI Jobs
Explore Data & AI career paths in the USA and practical ways to prepare for the U.S. technology job market
Medium · AI
📰
Data & AI Careers in the USA: A Practical Guide to Data Analyst, Data Scientist, ML & GenAI Jobs
Explore Data & AI career paths in the USA and learn how to prepare for these roles
Medium · Machine Learning

Chapters (22)

1:18 Begin of Recon: Getting ubuntu version
4:00 Navigating to the CrimeStoppers Page
5:15 First Hint - Read The Source!
5:50 2nd Hint - No SQL Databases and playing with the upload form
7:55 3rd Hint - Setting Admin cookie to 1 to see whiterose.txt
9:00 Explanation of PHP App and why I went down testing $op parameter
10:45 Testing $op parameter, another hint what year is it?
12:20 Finding out $op appends .php
13:05 Using php b64 filter to view php files ("Read the source luke")
22:50 Looking into PHP Wrappers to try to gain code execution
24:50 Placing our PHP Script in a zip so we can reference it with zip://, also impro
26:20 Attempting to use the zip:// wrapper to execute our php script, then troublesh
30:30 Easy way to copy binary data into BurpSuite (Base64)
34:10 Getting a shell
37:18 Downloading ThunderBird Directory and reading email + getting dom's password
46:20 Begin of looking into Apache Rootkit (mod_rootme)
48:04 Begin of using r2 (Radare) to analyze rootkit, basic intro
50:55 Analyzing DarkArmy Function
55:30 Grabbing the strings and using python to XOR them to get secret that allows ro
58:35 Get Root
59:10 Potential rabbit hole in the binary /var/www/html/whiterose.txt in the binary
1:04:20 Second way to get root, looking around at file modification times to find FunS
Up next
India GDP 7.8%: RBI Estimate Broken! What Does It Mean for the Stock Market? | Q1 FY27 GDP Data
Dr. Mukul Agrawal : Stock Market Coach
Watch →