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

JS-164 Improve S5122: Detect origin reflection #4724

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

yassin-kammoun-sonarsource
Copy link
Contributor

@yassin-kammoun-sonarsource yassin-kammoun-sonarsource commented Jun 4, 2024

The rule was reimplemented from scratch.
It now leverages helper functions implemented in the meantime.
It makes the rule smarter, more reliable, and less noisy.

I have checked locally and confirmed that the original vulnerability reported by the R&D Team is now being detected.

Please review also the RSPEC update: SonarSource/rspec#3963

Copy link
Contributor

@ilia-kebets-sonarsource ilia-kebets-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM. Clean job with nice patterns! Early returns FTW!

@yassin-kammoun-sonarsource yassin-kammoun-sonarsource merged commit b9c76e3 into master Jun 5, 2024
14 of 15 checks passed
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.

2 participants