-
-
Notifications
You must be signed in to change notification settings - Fork 402
Rule 941310: false positive for Russian letters "м" and "о" #1942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also #1645 |
As already stated in the linked #1645 the same problem exists for german Umlaute:
I do not know how to easily prevent these false positives. But I think this rule is too strict and definitely does not belong to PL 1.
My suggestion would be to move the rule to PL 2 or even 3. What do you think? |
It's annoying but I can not reproduce this behavior! What I found is this explanation here:
Google Translate:
It seems that sometimes this can happen. I don't know when and why. I have now completely removed this rule in my setup. I don't have the time to look into it further. Either we live with it and say the false positive rarely occurs or we move the rule to PL 2 or someone else can take over this issue. |
The differences in encoding are due to different ways that the glyph |
Oh, that's smart. Thanks a lot for your input!! I proposed a PR that moves the rule to PL2. You proposed to extend the rule with a |
Thank you @theseion for explaining this once more. I did not get it when @franbuehler mentioned it above. Here is how I get the "incorrect" UTF-8 representation. Maybe this helps with reproducing.
|
That looks good @dune73. @franbuehled As detailed in the description of the evasion (https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet) this particular evasion only works with US-ASCII and the only known web server to use US-ASCII is Tomcat. So we could say that PL2 is enough since it is not a common configuration (and it would take a misconfigured Tomcat anyway). Additionally, checking for
This clearly isn't a maintainable option. Then again, most of these would today be covered by CORS policies. I went back and looked at #1645. My original proposal
Let's do the first case: It would be interesting to test this against content from @Ais8Ooz8 since I don't have a good understanding of the possible byte combinations in the Russion alphabet. |
Thank you for your detailed explanation and your very appreciated help, @theseion! I summarize the three options:
Is @Ais8Ooz8 still available so we could test this? Would that be a good way to go? |
Meeting decision May (#2053 (comment)): |
I'll take a look in the next few days. |
That would be awesome, thank you!! |
Just to let you know: I haven't forgotten. I'm finishing up some other stuff and will start working on this ASAP. |
@franbuehler I've opened a PR. Could you take a look? |
Thank you @theseion!! Yes, I'll take a look. |
Uh oh!
There was an error while loading. Please reload this page.
Description
I just enter a word from all the letters of the Russian alphabet and get a false positive.
I decided to check the whole alphabet after I started noticing problems with some Russian sentences. As it turned out, the problem is in specific letters
Audit Logs / Triggered Rule Numbers
Your Environment
Confirmation
[X] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered: