Posts: 8 Threads: 0 Joined: N/A October 25, 2022 at 8:19 AM good work! Posts: 43 Threads: 0 Joined: N/A October 25, 2022 at 8:33 AM did anyone get how to make a wish for pwn? Posts: 23 Threads: 0 Joined: N/A October 25, 2022 at 8:52 AM (October 24, 2022, 01:50 PM)Hacker2222 Wrote: 请在这里讨论
逆转挑战: 感谢@HTBContestant Posts: 43 Threads: 0 Joined: N/A October 25, 2022 at 9:07 AM (October 25, 2022, 02:42 AM)4ndtips2020 Wrote: Its working pwn? its not working Posts: 0 Threads: 0 Joined: N/A October 25, 2022 at 9:16 AM (October 24, 2022, 09:46 PM)lnf02 Wrote: Hey guys @Hacker2222, I found the solution for this Web challenge, doesn't seem to be like a "easy" challenge, more like a medium challenge...
basically you need to work with nested queries, the register API is vulnerable, due to the fact that is using "insert" without any sanitization on the user's input, so... you need to bypass the "user already exists" check, and after that nest your real query. The thing is, you should be able to manipulate almost perfectly the password column but is useless... BUT SQL has a built-in function to UPDATE the field where there's a "duplicated" field... Maybe you are understanding what I'm talking about, maybe you are just looking for the god dam flag (script kiddie xD)
In other words:
You need to create a query that is able to bypass the "username already exist" check and after that, check for a duplicated value with the username=admin
If you really want to understand all the logic behind this SQLi, I recommend you to read this
https://www.w3schools.com/sql/sql_union.asp https://stackoverflow.com/questions/8043908/how-do-i-force-an-insert-into-a-table-with-a-unique-key-if-its-already-in-the-t
Here's the high level SQLi Thanks! Posts: 19 Threads: 0 Joined: N/A October 25, 2022 at 9:17 AM thanks Posts: 22 Threads: 0 Joined: N/A October 25, 2022 at 9:33 AM need pwn and web :( Posts: 1 Threads: 0 Joined: N/A October 25, 2022 at 9:38 AM (October 24, 2022, 01:50 PM)Hacker2222 Wrote: thanks
reversing challenge: thanks @HTBContestant Posts: 16 Threads: 0 Joined: N/A October 25, 2022 at 9:48 AM I'm so dumb lol Posts: 7 Threads: 0 Joined: N/A October 25, 2022 at 9:49 AM awesome! |