Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Fail Open Authentication and Parameter Injection

From: Dawes, Rogan (ZA - Johannesburg) <rdawes(at)deloitte.co.za>
Date: Tue Mar 25 2003 - 02:09:58 EST


I'll give a real world case which I found.

A web app was using the following comparison for chacking passwords :

and password like "$password%";

Don't ask me why they thought this was a good idea, I just know that they did it.

Even providing the first character of the password would have been sufficient, but I chanced upon it when the client sent me a wrapped url with the password parameter on the next line:

E.g. please start here: http://www.blah.com/mylogin.asp?username=myname &password=password

When I clicked on the URL (intending to paste the rest once the browser had started up), I was logged in!

Bizarre, but true!

Do you need help?X

An example of parameter injection:

A web app that allows you to execute a traceroute from the web server to an arbitrary destination.

Takes an IP address as input, and executes something like:

/bin/sh -c "traceroute $ip > file"

Then reads file in, and includes it in the web page it displays to you.

Provide something like:

192.168.1.1 > /dev/null ; cat /etc/shadow

And with any luck, you will get the shadow file from the server instead of the traceroute output.

Do you need more help?X

Rogan

-----Original Message-----
From: Indian Tiger [mailto:indiantiger@mailandnews.com] Sent: 21 February 2002 08:44 PM
To: webappsec@securityfocus.com
Subject: Fail Open Authentication and Parameter Injection

Hi,

I am learning Web Application Security Penetration Testing using WebGoat. I have some queries on this.

Fail Open Authentication
WebGoat's step 3 says: "Try removing password parameter with Achilles. " How it's possible. Is there any chance when server don't even check password if we remove password parameter.

Parameter Injection
What could be the scenario where a site is vulnerable to Parameter Injections.
I have given a thought on this but not able to think how exactly it works in practice.
Webgoat has given an example like this 'blah & netstat -a & ipconfig' But where a developer will be allowing to insert such values.

Any help on this would be highly appriciated.

Thanking You.
Sincerely,

Can we help you?X

Indian Tiger, CISSP Received on Tue Mar 25 11:28:33 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:49 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library