Our /public/index.php was replaced.
And a directory named /public/ALFA_DATA/alfacgiapi in our Laravel app this morning.
In this folder there're .htaccess, aspx.aspx, bash.alfa, perl.alfa and py.alfa.
After reading some articles it appears to be some Wordpress-related exploit.
But this VM has no Wordpress installation at all.
We have also found a malicious file /public/c.php that has an arbitrary file upload form.
We have no idea how it got there.
And another malicious /public/style.php that handles file copying, renaming, replacing, reading directories etc.
The /public/.htaccess is also modified by the malware.
We have checked all controllers that deal with file upload,
but we have no controllers that upload files to the /public folder.
Would appreciate if anyone having the same breach can tell us what it is and what steps can we take.
Thank you.
p/s: The app is running on Apache and Windows Server