8000 Add functions to cover one half, the not encoded part, of issue 2509 by theseion · Pull Request #2567 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add functions to cover one half, the not encoded part, of issue 2509 #2567

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 3 commits into from
Jun 19, 2022

Conversation

theseion
Copy link
Contributor
@theseion theseion commented May 16, 2022

On behalf of @franbuehler

Replaces #2521 for v4.1/dev.

This PR tries to cover one half of issue #2512, the not Unicode encoded part, by adding some functions that were used in the bypass.
This PR only covers the reported functions, but maybe we should have a look at other document properties and not only document.domain (https://developer.mozilla.org/en-US/docs/Web/API/Document/domain).
And the same for atob(), btoa() and alert() (https://www.w3schools.com/jsref/obj_window.asp) -> I chose the PHP file because they have been mentioned together with eval() and the enhancement of this existing file was simple and quick. But maybe we should add a separate rule with Javascript functions instead of adding them to the existing PHP file?

Nevertheless, I'm pushing this PR now, also as a concrete basis for discussion. We can still make changes.

Next, we also need a PR to cover the Unicode part of the reported bypass. I'll have a look at this too.

@fzipi
Copy link
Member
fzipi commented Jun 4, 2022

@theseion There is a warning we need to fix before merging

@theseion
Copy link
Contributor Author
theseion commented Jun 5, 2022

Do you mean the "Github Actions syntax check"?

@theseion theseion added ⚠️ do not merge Additional work or discussion is needed despite passing tests merge-now labels Jun 8, 2022
franbuehler and others added 2 commits June 12, 2022 10:08
The octothorp character in YAML starts a comment. Quoting line 90
prevents the parser from treating the GH issue number as a comment.
@theseion theseion force-pushed the xss-bypass-1-functions branch from 62e8caa to eb7d6ef Compare June 12, 2022 08:11
@theseion
Copy link
Contributor Author

@fzipi should be fixed now.

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
Copy link
Member
fzipi commented Jun 12, 2022

Shall we remove the do not merge label here?

@theseion
Copy link
Contributor Author

Let me do a review first.

@dune73
Copy link
Member
dune73 commented Jun 13, 2022

Would appreciate that. The three PRs with the label are now really keeping back the BB PRs and we better get going with those.

@theseion
Copy link
Contributor Author

@fzipi @franbuehler LGTM.

@fzipi fzipi removed the ⚠️ do not merge Additional work or discussion is needed despite passing tests label Jun 19, 2022
@fzipi fzipi merged commit 91c2dd4 into coreruleset:v4.0/dev Jun 19, 2022
@theseion theseion deleted the xss-bypass-1-functions branch October 7, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0