Skip to content
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

fix: Added regex for alerts #15833

Merged
merged 1 commit into from Feb 14, 2022
Merged

Conversation

shadrak98
Copy link
Contributor

Added regex for popups such as alert, prompt and confirm on client side.
Previously only script tags were identified which left many pyloads bypass even after apply sanitization.

Also, rearranged the strategies to check for payloads since if both strategies are applicable then html escape makes the script tag unidentifiable
Screenshot 2022-02-02 at 11 28 13 AM
.

@shadrak98 shadrak98 requested a review from a team as a code owner February 2, 2022 05:58
@shadrak98 shadrak98 requested review from surajshetty3416 and removed request for a team February 2, 2022 05:58
@codecov
Copy link

codecov bot commented Feb 2, 2022

Codecov Report

Merging #15833 (dce336f) into develop (e43cf12) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #15833      +/-   ##
===========================================
- Coverage    53.57%   53.53%   -0.04%     
===========================================
  Files          754      754              
  Lines        66440    67558    +1118     
  Branches      5622     6090     +468     
===========================================
+ Hits         35593    36166     +573     
- Misses       27428    27810     +382     
- Partials      3419     3582     +163     
Flag Coverage Δ
ui-tests 46.90% <100.00%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@surajshetty3416 surajshetty3416 self-assigned this Feb 3, 2022
@stale
Copy link

stale bot commented Feb 10, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Feb 10, 2022
@stale stale bot closed this Feb 13, 2022
@shadrak98 shadrak98 reopened this Feb 13, 2022
@stale stale bot removed the inactive label Feb 13, 2022
@surajshetty3416 surajshetty3416 changed the title fix: added regex for alerts fix: Added regex for alerts Feb 14, 2022
@mergify mergify bot merged commit 786acdc into frappe:develop Feb 14, 2022
@surajshetty3416
Copy link
Member

@Mergifyio backport version-13-hotfix

@mergify
Copy link
Contributor

mergify bot commented Feb 14, 2022

backport version-13-hotfix

✅ Backports have been created

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants