Skip to content

NAKSHA-293: fix sql injectin bulnerability - #688

Merged
Marcin-Here merged 7 commits into
v2from
NAKSHA-293_fix_sql_injection_vulnerability
Nov 18, 2026
Merged

Marcin-Here merged 7 commits into
v2from
NAKSHA-293_fix_sql_injection_vulnerability

Conversation

@Marcin-Here

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 42.94% 🍏
Files changed 100% 🍏

Module Coverage
here-naksha-app-service 72.3% 🍏
here-naksha-lib-core 32.79% 🍏
Files
Module File Coverage
here-naksha-app-service PropertySearchUtil.java 81.98% 🍏
here-naksha-lib-core NakshaVersion.java 42.31% 🍏

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 42.93% 🍏
Files changed 100% 🍏

Module Coverage
here-naksha-app-service 72.3% 🍏
here-naksha-lib-core 32.79% 🍏
Files
Module File Coverage
here-naksha-app-service PropertySearchUtil.java 81.98% 🍏
here-naksha-lib-core NakshaVersion.java 42.31% 🍏

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 42.94% 🍏
Files changed 100% 🍏

Module Coverage
here-naksha-app-service 72.3% 🍏
here-naksha-lib-core 32.79% 🍏
Files
Module File Coverage
here-naksha-app-service PropertySearchUtil.java 81.98% 🍏
here-naksha-lib-core NakshaVersion.java 42.31% 🍏

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 42.93% 🍏
Files changed 100% 🍏

Module Coverage
here-naksha-app-service 72.3% 🍏
here-naksha-lib-core 32.78% 🍏
Files
Module File Coverage
here-naksha-app-service PropertySearchUtil.java 81.98% 🍏
here-naksha-lib-core NakshaVersion.java 42.31% 🍏

if (!ALLOWED_PROPERTY_NAME.matcher(segment).matches()) {
throw new XyzErrorException(
XyzError.ILLEGAL_ARGUMENT,
"Invalid key %s, allowed characters: [a-zA-Z0-9@:._-]".formatted(propKey));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggest not to give such hint in Http response, about what exactly is supported.

I recommend keeping the message as generic:
"Unsupported prop key supplied: %s"

Signed-off-by: Marcin-Here <ext-marcin.grabowski@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 42.94% 🍏
Files changed 100% 🍏

Module Coverage
here-naksha-app-service 72.3% 🍏
here-naksha-lib-core 32.79% 🍏
Files
Module File Coverage
here-naksha-app-service PropertySearchUtil.java 81.98% 🍏
here-naksha-lib-core NakshaVersion.java 42.31% 🍏

@Marcin-Here
Marcin-Here merged commit 225a465 into v2 Nov 18, 2026
3 checks passed
@Marcin-Here
Marcin-Here deleted the NAKSHA-293_fix_sql_injection_vulnerability branch November 18, 2026 11:26
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