- Yes
- Yes
- Maybe
I think these might be worth checking out
https://www.freecodecamp.org/news/protect-your-laravel-app-against-the-owasp-top-10-security-risks/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. Just had my first Laravel website hack. The site is hosted on Forge.
I made the silly mistake of leaving debug mode on but I'm not sure if this is how the hack script got in.
My public folder was full of the usual crazy files that you find in hacks. I'm hoping that the scripts couldn't navigate any further up the directory structure. I assume that Forge's default permissions have this covered.
The most concerning file is a bash script that was attempting to output my env file like so:
cat /home/forge/mysite.com/.env
I ran this line via SSH and it does indeed output the entire file.
My main concerns are:
Thanks in advance for any advice on this.
Please or to participate in this conversation.