Skip to content

Conversation

@williamjallen
Copy link
Collaborator

timeline.php currently accepts arbitrary strings as column names, which opens us up to SQL injection attacks. This PR sanitizes the column names such that only the intended column names can be used. I also added a basic test to ensure that this check continues to work in the future. As part of adding the test, I was forced to migrate the API endpoint to the new controller system without fully replacing the legacy controller.

@josephsnyder josephsnyder added this pull request to the merge queue Oct 2, 2023
Merged via the queue into Kitware:master with commit ba931bc Oct 2, 2023
@williamjallen williamjallen deleted the sanitize-buildProperties-timeline-query branch October 2, 2023 13:59
zackgalbreath pushed a commit that referenced this pull request Nov 6, 2023
`timeline.php` currently accepts arbitrary strings as column names,
which opens us up to SQL injection attacks. This PR sanitizes the column
names such that only the intended column names can be used. I also added
a basic test to ensure that this check continues to work in the future.
As part of adding the test, I was forced to migrate the API endpoint to
the new controller system without fully replacing the legacy controller.
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.

2 participants