Loggin in but as James Roberts

Sandra Murphy

BitSec01
9 years ago

0

So i have read some thing about Xpath and i tried to do some injections like:

username: admin' or name(realname)=‘Sandra Murphy
password: admin’ or ‘1’=‘1

username: admin' or id(realname)=‘Sandra Murphy
password: admin’ or ‘1’=‘1

i dont really know what to do except trying to find out what the username is of Sandra Murphy but after reading multiple posts and reading the wikipedia of Xpath and some other pages i found on the forum i still dont know what to do…

9replies
5voices
245views

0

Check this thread to see the full implementation of Intermediate Level 6.

You should include your injection into the code to see if it works.

BitSec01
9 years ago

0

Thank you i have read the post and i finally got it! after 65 tries xD

tl0tr
9 years ago

0

This level was really something.

ninjalizard
9 years ago

0

Can anyone offer a brief explanation as to why this injection logged in as James Roberts? Is that the name of the admin? im confused… 235 attempts so far lol

ninjalizard
9 years ago

0

My guess is that admin is a user then “or name(realname)=‘Sandra Murphy” is a true statement??

dloser
9 years ago

0

Try to understand what you are injecting into and how XPath deals with that. The thread @freewind1012 referred to can help you.

(And yes, James Roberts is admin.)

ninjalizard
9 years ago | edited 9 years ago

0

Thanks for that, I’ve litteraly read every single thread on here, watched youtube videos, read articles on various sites and i’m really just not getting it. I’m ok with SQL injection and obviously a lot of people say this is very similar but I cant seem to link the two. >> ‘or 1=1 or realname/text()='Sandra Murphy is what I last injected and I genuinely have no idea if im on the right lines as many of the posts in this forum contradict eachother, with some saying you only use 1=1 if you don’t know something and others saying the injection starts with ’ or 1=1… very confusing to me for some reason.

dloser
9 years ago

0

Don’t rely too much on what others say. As you have noticed, not everyone knows what they are talking about. ;)

Try setting up something for yourself to play with XPath. Get a feeling for it. I just googled ‘xpath online’ and got http://www.xpathtester.com/xpath which seems to work (although I did have to paste the whole XML back in every time).

ninjalizard
9 years ago

0

Brilliant link thanks a lot for that, I think my biggest mistake has been reading too much of what others have said. I’ll have a play about on that siter, thanks again!

You must be logged in to reply to this discussion. Login
1 of 10

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss