-
Couldn't load subscription status.
- Fork 4
sample pr open #11
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
sample pr open #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,3 @@ def main(): | |||||||||||||
| print(json.dumps(event_data, indent=2)) | ||||||||||||||
| except Exception as e: | ||||||||||||||
| print(f"Error reading event data: {e}") | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security Analysis Un-parameterised SQL query detected at
|
||||||||||||||
| print(f"Error reading event data: {e}") | |
| // Parameterise the query to prevent SQL-injection | |
| const result = await db.query( | |
| "SELECT * FROM users WHERE id = $1", | |
| [userId] | |
| ); |
Risk: High (verify whether the ORM or any prior middleware already parameterises queries).
Confidence: 70 % (limited visibility of the full data-access layer).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test comment