Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Hacking PHP login


ghost's Avatar
0 0

Looking to get some information on where to look to find exploits in a php login.

I have my own copy of the ALL the files for the script so I can go through the code to find exploits, I just don't have any access to the actual login I want to crack.

As far as I can tell the login is custom coded with php (not some login from like hotscripts or something). It has just login and password fields with a forgot my password feature. To retrieve the password you need user + email address and I don't know/have access to either.

Where should I start to look to find exploits? Would it help if I posted the script and/or gave the url to my own version of the script hosted on my own servers on my own domain. (no legal trouble)

Thanks for any help.

edit: I'm sure you'll need to know most specifics just ask me and I can check them out or I can post the url to the code and/or to the code hosting and working (again, on my own servers.)

edit number 2: No limit to how many times you can try a password/username before you are banned or a captcha appears.


spyware's Avatar
Banned
0 0

Well, you pose an excellent question. What you basically want to know his how does one identify exploitable bugs in a login script written in PHP?.

Let me give you a few tips to get started. Check out the following: -Input filtering -Cookie management -SQL database interaction -'Are you logged in?'-procedures

Everything starts with input filtering. Faulty filtering can enable XSS, SQL injection and redirection attacks.

I hope this helped.


Uber0n's Avatar
Member
0 0

trixus wrote: I have my own copy of the ALL the files for the script so I can go through the code to find exploits, I just don't have any access to the actual login I want to crack. Do you mean that you have a mirror of the HTML pages, or that you have the actual PHP source? There's a big difference there :p


ghost's Avatar
0 0

if u have an exapt copy of the php it woul help loads, you can see exactly what is filtered from input, and the sql tables and columns that it interacts with to preform sql injections of your own lol, ps, how did you manage to get the copy of the php code?? ps.ps, does the page use lfi, 'cause if it does and you know that variables, cookies etc, use rfi attack to get admin possibly…i dno im tired so just spitballing here lol, hope it helps at all


ghost's Avatar
0 0

use a spider to try and and see what you can download


ghost's Avatar
0 0

I have ALL the files, not just the html. I have a 100% exact replica. I can put it up on my server as a live version. 100% the same script/code that I want to hack. If I put it up on my server would you guys be willing to help me out a little bit?

THIS IS NOT ALL THAT I HAVE, this is just what is shown on the the login.php for the login

<form method="post" action="">

	&lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;xxx &lt;---random value in here, but it is always the same.&quot;/&gt;
	
					&lt;tr&gt;
			&lt;td&gt;Username:&lt;/td&gt;
			&lt;td&gt;&lt;input id=&quot;user_name&quot; type=&quot;text&quot; name=&quot;user_name&quot; value=&quot;&quot;/&gt;&lt;/td&gt;
		&lt;/tr&gt;
					&lt;tr&gt;
			&lt;td&gt;Password:&lt;/td&gt;

			&lt;td&gt;
				&lt;input id=&quot;user_password&quot; type=&quot;password&quot; name=&quot;user_password&quot;/&gt;
				&lt;span id=&quot;lostpw&quot;&gt;(&lt;a href=&quot;lost-pass.php&quot;&gt;I forgot my password/username&lt;/a&gt;)&lt;/a&gt;

fashizzlepop's Avatar
Member
0 0

So you do have the sql queries?


spyware's Avatar
Banned
0 0

Trixus, you need to take a look at the PHP code and the SQL queries. The HTML is kind of irrelevant here.


Uber0n's Avatar
Member
0 0

spyware wrote: The HTML is kind of irrelevant here. Correction: The HTML is totally irrelevant here.


korg's Avatar
Admin from hell
0 0

trixus said what?:
I can put it up on my server as a live version. 100% the same script/code that I want to hack

My question would be…. Why are we trying to help someone hack a login if he can't do it himself. Learning is the first step.


Uber0n's Avatar
Member
0 0

trixus said what?:
I can put it up on my server as a live version. 100% the same script/code that I want to hack

korg wrote: My question would be…. Why are we trying to help someone hack a login if he can't do it himself. Learning is the first step.

Because we get turned on when people say that they have source code. Duh ;)


korg's Avatar
Admin from hell
0 0

Oh I see your point now it's like porn, HMM maybe he should host it so we can try to hack his server, Or I mean the script for him


fashizzlepop's Avatar
Member
0 0

Ooooh, that hit the spot there Korg… :P


ghost's Avatar
0 0

its funny how every thing is always so sexual with you korg