Skip to content
404Gh0st Blog
blogauthorsabout
  1. Tags
  2. BASH_ENV
  • HTB: Environment

    HTB: Environment

    Environment is a Linux machine. The box involves exploiting a Laravel web application vulnerability (CVE-2024-52301) to bypass authentication and upload a shell. It involves finding and decrypting a GPG backup file to obtain credentials, and finally escalating privileges to root by abusing sudo permissions and the BASH_ENV variable.

    404Gh0stMay 4, 20255 min read
    • Linux
    • Medium
    • CVE-2024-52301
    • Laravel
    • File Upload
    • GPG
    • BASH_ENV

404Gh0st

CTF writeups, HackTheBox notes, and security work.

© 2026 404Gh0st. All rights reserved.