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

SQL-Injection possible #7

Open
muelleel opened this issue Oct 13, 2021 · 0 comments · May be fixed by #8
Open

SQL-Injection possible #7

muelleel opened this issue Oct 13, 2021 · 0 comments · May be fixed by #8

Comments

@muelleel
Copy link

OnlineTime onlineTime = BungeeOnlineTime.SQL.getOnlineTime(args[1]);

Calling getOnlineTime and passing directly Command Arguments in is probably not save, and opens an door for an SQL-Injection.
Maybe rewrite to use prepared statements?

7kasper added a commit to 7kasper/BungeeOnlineTime that referenced this issue Dec 28, 2021
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 a pull request may close this issue.

1 participant