8000 fix: fp with user-agent containing ; pg (932239 PL2) by franbuehler · Pull Request #3727 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: fp with user-agent containing ; pg (932239 PL2) #3727

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

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

franbuehler
Copy link
Contributor
@franbuehler franbuehler commented Jun 1, 2024

This PR resolves #3725 by adding a @ to pg to the file unix-shell-upto3.ra. It also adds a test.

@franbuehler franbuehler changed the title fix: fp with user-agent containing ; pgt (932239 PL2) fix: fp with user-agent containing ; pg (932239 PL2) Jun 1, 2024
@azurit
Copy link
Member
azurit commented Jun 2, 2024

What exactly will this PR cause? Will it exclude pg, pg@ and pg~ from regex assembling?

@franbuehler
Copy link
Contributor Author

What exactly will this PR cause? Will it exclude pg, pg@ and pg~ from regex assembling?

Yes, exactly.

@azurit
Copy link
Member
azurit commented Jun 2, 2024

That doesn't seems fully correct to me, as we are having FPs with PGT- and not with, for example, pg (with a space at the end).

@franbuehler
Copy link
Contributor Author
franbuehler commented Jun 3, 2024

Yes, true. So, to match pgt but not pg, I'll add ~ but not @ to the exclusion file. I'll remove the pg@ AND pg, right?

@franbuehler
Copy link
Contributor Author

I don't know why test 932300 is failing. I had to run crs-toolchain regex update --all and used the latest crs-toolchain.

@fzipi fzipi force-pushed the fix-932239-useragent branch from cdf77be to 3d99114 Compare September 16, 2024 12:47
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
@fzipi fzipi force-pushed the fix-932239-useragent branch from 3d99114 to df3ebb8 Compare September 16, 2024 12:52
Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fzipi fzipi requested a review from azurit September 16, 2024 13:08
@RedXanadu RedXanadu removed the Stale label Sep 16, 2024
Copy link
Member
@RedXanadu RedXanadu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change makes sense. New test looks good.

@fzipi fzipi added this pull request to the merge queue Sep 16, 2024
Merged via the queue into coreruleset:main with commit a419ffa Sep 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

932239 blocking Mozilla user-agents | Matched Data: ; PG found
4 participants
0