Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

is it really possible to upload or execute php code with SQL INJECTION??

is it really possible to upload or execute php code using SQL INJECTION? ( tried already INOUT COMMAND ) useless..

does it depend on php codes or how risk level the sql syntax error?

example : i found sql injection in one php admin panel but i cant execute php code or list files inside current directoy ! 🤣

any approach or guides for this concept? 🕵️

thanks to all
I don't think you would be able to execute PHP code, but what you can definitely do is dump the passwords and get in that way. Once you are in you can do whatever really. For example you can check if the admin panel password and username are the same for the server where the site is hosted and maybe gain access like that.

I think what you want to do is RFI (remote file inclusion) or LFI (local file inclusion), but that does not work unless something would load a file based on user input.
Hi,

I found this writeup, thought it might be relevant. It's about chaining an PHP SQLi to RCE by invoking a URI using data:// scheme as your protocol. https://infosecwriteups.com/sql-injectio...6bed29a862

It's a 4-step chain
> IDOR
> SQLi
> WAF Bypass
> RCE


But I'm sure you'd know better once you read the article.

Cheers!
Regards,
Porky
ℒ𝒶𝓊ℊ𝒽𝒾𝓃ℊ 𝒶𝓉 𝓎ℴ𝓊𝓇 𝓈ℯ𝒸𝓊𝓇𝒾𝓉𝓎 𝓈𝒾𝓃𝒸ℯ... ℯ𝓋ℯ𝓇.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by getvoucherSep 5, 2018 04:03 AM 4 270 Sep 5, 2018 04:03 AM
Last Post: Phizo
by ZoidbergNov 23, 2016 10:27 PM 3 175 Nov 23, 2016 10:27 PM
Last Post: ThatGuy126
by shazalammNov 4, 2016 05:14 PM 1 328 Nov 4, 2016 05:14 PM
Last Post: something goes here