Skip to content
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

Possible SQL Injection flaw #37

Open
bugflux opened this issue May 20, 2016 · 1 comment
Open

Possible SQL Injection flaw #37

bugflux opened this issue May 20, 2016 · 1 comment

Comments

@bugflux
Copy link

bugflux commented May 20, 2016

Hello,

I'd like to understand in which scenarios we think using an object's "toString" is a valid conversion for a constant parameter, because it could lead to SQL Injection:

https://github.com/feedzai/pdb/blob/master/src/main/java/com/feedzai/commons/sql/abstraction/engine/AbstractTranslator.java#L245

@rpvilao-gymondo
Copy link

Seems like a valid point... the constant can be used everywhere possible like in where clauses, select columns etc. So it should be escaped if not already

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

No branches or pull requests

2 participants