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

[DB] SQL injection #3

Open
matiboy opened this issue Mar 22, 2017 · 2 comments
Open

[DB] SQL injection #3

matiboy opened this issue Mar 22, 2017 · 2 comments

Comments

@matiboy
Copy link

matiboy commented Mar 22, 2017

Briefly describe SQL injection
Is your current code protected against such attacks. If yes explain how, if no point to examples and suggest solutions/fixes

@ai550
Copy link

ai550 commented Mar 24, 2017

To put it simply, SQL Injection is a way to insert one's custom (and sometimes dangerous) query into a stream of executed queries.

@ai550
Copy link

ai550 commented Mar 24, 2017

The function get_user_by_id(id) in database.py is vulnerable to SQL Injection.
Solution/fix: use query data as a parameter in execute function.

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