Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kaustubh's avatar

Is My Laravel Project has been Hacked or Bug

I had deployed my laravel project on Amazon Server and i recently found some extra php line of code auto generated in every files of laravel framework. I don't know is it virus or bug or it has been hacked. I have attach a sample screenshot below of config/view.php file

https://i.stack.imgur.com/jlG8h.jpg

0 likes
3 replies
burlresearch's avatar
Level 40

that is definitely a compromised server - you've been hacked.

I've seen this before on WordPress sites, but clearly someone has been allowed write-access to your source files.

Hopefully you have version-control and can delete - and redeploy - the server.

1 like
Kaustubh's avatar

Just now i found that Every files in xampp on Amazon Server has been affected

martinbean's avatar

@Kaustubh Well I imagine you’ve pulled down the files from the Amazon server. If not, then your computer has been hacked and you’ve instead uploaded infected files to the Amazon server.

3 likes

Please or to participate in this conversation.