A basic/newbie question on https.

A basic/newbie question on https.

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
A basic/newbie question on https. Harry 01-30-2008
Posted by Harry on January 30, 2008, 8:55 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hello,

Let's say, I can securely log into https://<URL> site using username
'u1' and password 'p1' from within a browser.

1. Is it possible to write a proxy
* that runs on my client machine,
* that the browser on the same client machine points to,
* that intercepts another username/password pair -- u2/p2 --
entered on the login page of the site and transforms it to u1/p1 so
that the user authentication can happen ?

Basically, what I'm trying to accomplish is temporarily allow a user
to log into https://<URL> without actually divulging the real username/
password (u1/p1). (I would validate u2/p2 within the above proxy so
that only the users I allow can access the site.)

This proxy could either be a stand-alone program, or a browser plugin.
I know https is a secure protocol; what I don't know is the point at
which the encryption occurs and whether or not this point is late
enough to allow interception from the browsing machine... whether a
browser would allow hooks / interception API without compromising the
motivations/goals of the https protocol.

2. Also, any recommendations for a 'good' open-source http proxy?
Muffin seems to be very old project. Proxomitron is superb but is not
opensource!

Many thanks in advance,
/HS

Posted by Todd H. on January 30, 2008, 11:56 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
> Hello,
>
> Let's say, I can securely log into https://<URL> site using username
> 'u1' and password 'p1' from within a browser.
>
> 1. Is it possible to write a proxy
> * that runs on my client machine,
> * that the browser on the same client machine points to,
> * that intercepts another username/password pair -- u2/p2 --
> entered on the login page of the site and transforms it to u1/p1 so
> that the user authentication can happen ?

parosproxy.org

Yes. Paros Proxy can do this. "Replace http request header using
defined pattern" or "replace http request body using defined pattern"
are the functions you could leverage for this depending on how the
username is passed.


> Basically, what I'm trying to accomplish is temporarily allow a user
> to log into https://<URL> without actually divulging the real username/
> password (u1/p1). (I would validate u2/p2 within the above proxy so
> that only the users I allow can access the site.)

So this user is going to be using the workstation this proxy is
running on? Paros isn't a service or anything--it's designed as an
interactive web proxy program, but I suppose you could modify it to
run quietly and demurely as a service. Or if you're on a multi user
machine, run it as another user.

> This proxy could either be a stand-alone program, or a browser plugin.
> I know https is a secure protocol; what I don't know is the point at
> which the encryption occurs and whether or not this point is late
> enough to allow interception from the browsing machine... whether a
> browser would allow hooks / interception API without compromising the
> motivations/goals of the https protocol.


https is easy to man in the middle if you've got control of the client
machine. Dumbing down the browser enough not to freak out at the
certificate mismatch between paros's internal cert vs the destination
site's name will be one issue. Even if not dumbed down, a frightening
number of users will just okay the cert warning anyway.

Best Regards,
--
Todd H.
http://www.toddh.net/

Similar ThreadsPosted
Https question August 21, 2005, 12:28 am
HTTPS question February 14, 2008, 2:41 pm
https question November 27, 2008, 7:19 am
HTTPS and URL encoding May 26, 2004, 7:04 pm
SSL/https De-encryption July 6, 2004, 9:15 am
How does HTTPS/SSL work? November 24, 2004, 3:40 pm
Https funda August 11, 2005, 8:09 am
https + security April 1, 2008, 7:02 pm
Re: https + security April 2, 2008, 12:40 am
https / proxy problem January 11, 2006, 10:59 am

The site map in XML format XML site map

Contact Us | Privacy Policy