-
Notifications
You must be signed in to change notification settings - Fork 728
Image causes interception (930110 -> /../ in binary) #1264
Comments
You are touching on a problematic rule in my opinion. I also have regular trouble with this rule and I wonder if we can make it better. Is it possible for you to share the image, so we can see the surrounding bytes? If it's private, please don't post it on Github. But if it's okay, it could help us to improve the rule. Also, can you post the relevant part of your audit log? (Often in /var/log/modsec_audit.log) |
Of course, but because the picture is too large, the overall binary is too much to copy, the points involved in the binary can be copied, and my audit is fully recorded (from A to Z) and UTF-8 |
What rule are we talking about exactly? |
"message": "Path Traversal Attack (/../)" |
Is it because I am using UTF-8 encoding? |
Thanks. No, I presume this is just a question of statistics. It's only 4 characters and you have a large binary file... |
@lifeforms : Do we really need to check REQUEST_BODY here? We ignore the query string, but we inspect the request body. Does not make much sense. @yuynagforhacker : Are you familiar with writing rule exclusions?
entered in the config after the CRS include should do the trick. |
So there is actually a problem here. Can I exclude it according to the file type of POST? For example, all images will not be detected, not a single rule, because I believe that all rules have probabilistic false positives. |
Sure. Such an exclusion is possible. But you will need to write it yourself. You may find my tutorials at https://netnea.com a helpful resource when tuning away false positives. |
OK, thanks. |
You are welcome. I'm reopening the issue, so we can solve it for good. :) |
I really hate that this rule has REQUEST_BODY and not ARGS. It makes it almost impossible to write a good exclusion. This is also not the first complaint by a user about it, so I think we should slate it for 3.2. I had already made an issue to discuss the problems with this rule: #597 so we can close this one. Thank you for bringing it to our attention again @yuynagforhacker :D |
ACK |
Thanks all. |
Another problem that has appeared today is also about pictures. I don't know if it is related to photoshop. The rules that trigger are as follows:
Since php is not used in my server, this rule is currently closed. This rule blocks most of my business images and is shared with everyone here.
|
Hi @yuynagforhacker, that's one of the things I'm thinking of :) We will be discussing it in the existing issue #597 so if you are interested please follow that bug! |
Hi:
Recently, there has been a problem that has been bothering me. When I upload the image, the image binary exists ../ and I know this is not compliant, but there is no way to make smart judgments. This has affected my business and needs help. thanks
The text was updated successfully, but these errors were encountered: