Skip to content

fix sql injection vulnerability - #704

Closed
kacper-kozera wants to merge 1 commit into
v3from
NAKSHA-320_fix_sql_injection_vulnerability
Closed

kacper-kozera wants to merge 1 commit into
v3from
NAKSHA-320_fix_sql_injection_vulnerability

Conversation

@kacper-kozera

Copy link
Copy Markdown

No description provided.

Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Code Coverage

Overall Project 63.75% 🍏
Files changed 100% 🍏

File Coverage
PropertyQueryUtil.java 87.46% 🍏

}

// whitelist allowed characters in each path segment to prevent SQL injection through property names
for (final String segment : propPath) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we even need that whitelist in v3? In v2 we wrote key into SQL text so it vulnerable to sql injection, but in v3 on legacy path PropertyFilter checks it after read and key contributes no SQL predicate, and on custom-index searches we would use quoted column names, and values and tag kets would be bounded parameters. I would take a look and original security ticket and run trough given examples there and check how v3 behaves on them and if we would get the same injection problem.

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