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

ascanrules: Merge XSS detection logic of CrossSiteScriptingScanRule and PersistentXssScanRule #3872

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DiogoMRSilva
Copy link
Contributor

@DiogoMRSilva DiogoMRSilva commented Jun 23, 2022

Both CrossSiteScriptingScanRule and PersistentXssScanRule need the same logic to detect the existence of an XSS only differing on the the HTTP request where the reflection is checked. At the moment stored XSS rule is not receiving all the upgrades and fixes the reflected XSS rule is receiving, this solves the problem and removes duplicated code.
Once Fix stored xss scanner is used the FPs on stored XSS start to appear.

Signed-off-by: Diogo Silva <diogomiresi@gmail.com>
Signed-off-by: Diogo Silva <diogomiresi@gmail.com>
@DiogoMRSilva DiogoMRSilva changed the title Merge xss detection logic of CrossSiteScriptingScanRule and PersistentXssScanRule Merge XSS detection logic of CrossSiteScriptingScanRule and PersistentXssScanRule Jun 23, 2022
@kingthorin
Copy link
Member

kingthorin commented Jun 23, 2022

This will need some re-work after: #3838 is merged.

Thanks for tackling this BTW!!!

@lgtm-com

This comment was marked as resolved.

@thc202 thc202 changed the title Merge XSS detection logic of CrossSiteScriptingScanRule and PersistentXssScanRule ascanrules: Merge XSS detection logic of CrossSiteScriptingScanRule and PersistentXssScanRule Jun 23, 2022
…XssScanRule

Signed-off-by: Diogo Silva <diogomiresi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants