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

applyconfig can create databases with any name #1

Open
marshallovski opened this issue Jan 24, 2023 · 0 comments
Open

applyconfig can create databases with any name #1

marshallovski opened this issue Jan 24, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@marshallovski
Copy link
Owner

marshallovski commented Jan 24, 2023

this is NOT a SQL injection. the code below just creates a database.
i checked it, and if we creating a new database named "DROP DATABASE `test`"
the code below simply creates a new database named "drop database test".
MUST be fixed in near future

$mysqli->real_query(sanitize(mysqli_real_escape_string($mysqli, "CREATE DATABASE IF NOT EXISTS `" . $dbcfg['repoxydb']['dbname'] . "`")));
@marshallovski marshallovski added bug Something isn't working help wanted Extra attention is needed labels Jan 24, 2023
@marshallovski marshallovski pinned this issue Jan 24, 2023
@marshallovski marshallovski unpinned this issue Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant