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

Reading and Writing File Exploitation in SQLi Doesn't Work #30

Closed
jtheanalytica opened this issue Sep 7, 2022 · 2 comments
Closed

Reading and Writing File Exploitation in SQLi Doesn't Work #30

jtheanalytica opened this issue Sep 7, 2022 · 2 comments

Comments

@jtheanalytica
Copy link

Hi Jeremy.

When I attempt to read files from server - using LOAD_FILE('/etc/passwd'), I don't get anything.

loadFile

Also when attempting to write a file, I get an error.

uploadfiles

Please note that I'm able to do the above techniques in the Metasploitable VM.
https://sourceforge.net/projects/metasploitable/

Thanks

@jtheanalytica
Copy link
Author

Wanted to add that I'm working on Oracle VM. Debian 11. MySQL server. Apache2 web server.

@jtheanalytica
Copy link
Author

I found the solution to that. Not related to Mutillidae. Rather to MySQL:
mysql> SHOW VARIABLES LIKE "secure_file_priv";

I disabled it you by addding [secure-file-priv = "" ] to my.cnf
All sorted out now.

Thanks

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

1 participant