Skip to content

Add whitelist to normalizeStoreName to avoid injection#108

Merged
lmg-anon merged 1 commit into
lmg-anon:mainfrom
inkz:patch-1
Oct 28, 2025
Merged

Add whitelist to normalizeStoreName to avoid injection#108
lmg-anon merged 1 commit into
lmg-anon:mainfrom
inkz:patch-1

Conversation

@inkz

@inkz inkz commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

This PR introduces a whitelist check to mitigate SQL injection risks when handling user input. Previously, user-controlled input was being used directly in dynamic SQL queries, which could allow an attacker to manipulate database queries. E.g. https://github.com/lmg-anon/mikupad/blob/HEAD/server/server.js#L285

This PR introduces a whitelist check to mitigate SQL injection risks when handling user input. Previously, user-controlled input was being used directly in dynamic SQL queries, which could allow an attacker to manipulate database queries.
E.g. https://github.com/lmg-anon/mikupad/blob/HEAD/server/server.js#L285
@lmg-anon

Copy link
Copy Markdown
Owner

Thank you for your contribution! I didn't care about that at the time because the Mikupad server is supposed to only be used by yourself, but I guess this change doesn't hurt.

@lmg-anon lmg-anon merged commit 5564a14 into lmg-anon:main Oct 28, 2025
aerodevxp pushed a commit to aerodevxp/mikupad that referenced this pull request Jun 8, 2026
Add whitelist to `normalizeStoreName` to avoid injection
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