Skip to content

Fix the reported security bug.#159

Merged
manugarg merged 1 commit intomasterfrom
fix_advisory
May 25, 2023
Merged

Fix the reported security bug.#159
manugarg merged 1 commit intomasterfrom
fix_advisory

Conversation

@manugarg
Copy link
Owner

See GHSA-62q6-v997-f7v9
for more details on the security bug.

Fix:

  • Use the JS_FunctionCall() API to call the FindProxyForURL() function
    instead of JS_EvaluateScript() API.
  • This also does away with the need to str_replace function. Making code
    simpler.
  • I've verified the fix with the test cases provided in the security bug.

See GHSA-62q6-v997-f7v9
for more details on the security bug.

Fix:
- Use the JS_FunctionCall() API to call the FindProxyForURL() function
  instead of JS_EvaluateScript() API.
- This also does away with the need to str_replace function. Making code
  simpler.
- I've verified the fix with the test cases provided in the security bug.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@manugarg manugarg merged commit 0bf0636 into master May 25, 2023
@manugarg manugarg deleted the fix_advisory branch May 25, 2023 15:41
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.

1 participant