Skip to content

Conversation

Napalys
Copy link
Contributor

@Napalys Napalys commented Aug 27, 2025

This PR enhances the js/remote-property-injection query to catch vulnerabilities where user-controlled data flows through object enumeration methods like Object.keys().

@github-actions github-actions bot added the JS label Aug 27, 2025
@Napalys Napalys marked this pull request as ready for review August 27, 2025 14:03
@Napalys Napalys requested a review from a team as a code owner August 27, 2025 14:04
@Copilot Copilot AI review requested due to automatic review settings August 27, 2025 14:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the JavaScript remote property injection query to detect vulnerabilities through object enumeration patterns like Object.keys(). The enhancement catches cases where user-controlled data flows through object enumeration methods before being used as property names.

  • Adds additional flow step to track property names derived from object enumeration
  • Updates test cases to include Object.keys() enumeration patterns
  • Creates change notes documenting the analysis improvement

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

File Description
RemotePropertyInjectionQuery.qll Adds flow step to track enumerated property names from source objects
tst.js Adds test case demonstrating Object.keys() vulnerability pattern
RemotePropertyInjection.expected Updates expected query results with new test case findings
2025-08-27-remote-property-injection-update.md Documents the query enhancement in change notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant