Secure against Laravel 8.4.2 debug mode - Remote code execution
Hello,
I am using Laravel Framework 6.20.16 and I noticed that I get attacked. After some research I found that the attack is called: https://www.exploit-db.com/exploits/49424 (Laravel 8.4.2 debug mode - Remote code execution)
I searched my code for a *.phar file, however I haven`t found one yet.
I am not sure if the attacker was successful.
Is there any way to check?
How to filter such attacks out in the future? Is there any way to secure my vps even more?
Running on an older version of Laravel is one of the reasons why you are getting attacked. (Although if you know how to prevent this, it would not be an issue)
The simplest solution would be to try to upgrade as best you can to the latest version of Laravel as there have been many security patches since 6.X
You can use a tool like shift to help you with this
Using Laravel 6 isn't the issue per se, as it has security fixes until September 6th, 2022, but you will need to update Laravel to the latest version (use composer update). I believe this will get patches (6.x.x).
That said I can't see a list of the Laravel 6 minor versions anywhere, so it's difficult to know what the latest 6.x you should be using is.