TL;DR: seeing a website attack that's new to us, wondering if it is a known thing, or if it's directed at some framework that we're not using. The attack is against a site's index.php script and feeds it a trailing path (PATH_INFO) that uses components like "auth" or "clipboard" that I guess are targeted at some framework.
We have a multi-store ecommerce website, custom code mostly in PHP. Among its valid URLs are things like
https://www.example.com/directory/Jewelry/Gold/Retro
https://www.example.com/directory/Jewelry/Gold/Retro?&start=108&l=18&view=pict
for a directory of items by category
https://www.example.com/stores/foo/catalog/
https://www.example.com/stores/foo/catalog/&start=198&l=18&view=list
for an individual store
https://www.example.com/stores/foo/items/12345/Item-SEO-Slug-Goes-Here
for individual items.
Over the past few days, we've seen a flood of thousands of invalid requests from random IP address for URLs like
where XXXXX is one of
- actor
- auth
- clipboard
- directory
- function
- misc
- pages
- repository
- shop
- user
Most of these tokens do not appear in any of our URLs. (Unless they show up coincidentally in an items' SEO slug.) The exception is "directory".
The attacking bot seems to trying for an index.php script that knows this set of verbs (which is not us), and is then adding a random bunch of valid URL fragments from our site. Though it is not using any query string or item slugs, so it is on some level "understanding" our URLs.
I'm wondering if there is some framework that uses "directory" as a top level verb, and seeing "directory" in our URLs is what got us targeted, thinking that we're using it.
It happens that our main index.php is not a general purpose router, but just loads either a desktop or mobile home page. So this was only a bit of DDOS load, which we've been able to solve by checking $_SERVER['PATH_INFO'] (which is always empty for valid requests, in our case) and immediately dropping the request rather than doing any further work.
So we've solved the issue for the moment, but I was wondering if anyone can identify this.
foodoing the taskbar. Or maybe it’s a custom script some random person wrote. Then what?