Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: HTTP sniffer for Digest Authentication? |
|---|---|
| Date: | Wed, 22 Sep 2004 18:13:23 +0100 |
Saqib.N.Ali@seagate.com wrote:
That is correct, but there is still a window of opportunity while a server-generated nonce remains valid. Nonce lifetime is implementation and configuration specific. For example, on Apache it defaults to 300 seconds. If I am in position to discover Digest hashes as they travel over the wire, each hash would give meAs I understand, even though a nonce generated digest can be valid for a certain amount of time, it one-use only. In other words once a valid user authenticates, the nonce generated digest is useless to the attacker. This is how I wrote my application, but I m not sure if webservers work the same way.
Below is a fragment from my access log with a 10-second nonce. Apache asks the client to reauthenticate (with a 401 response and a new nonce) every 10 seconds. After extending nonce lifetime, I took a set of request headers from the audit log and used them in a new request, and was successfully authenticated. I could repeat the process as many times as I wanted. That is, until the original nonce expired. ivanr [22/Sep/2004:18:59:52 +0100] "GET /review/ HTTP/1.1" 401 499 ivanr [22/Sep/2004:18:59:52 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:18:59:59 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:05 +0100] "GET /review/ HTTP/1.1" 401 499 ivanr [22/Sep/2004:19:00:05 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:07 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:12 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:14 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:14 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:15 +0100] "GET /review/ HTTP/1.1" 200 573 ivanr [22/Sep/2004:19:00:15 +0100] "GET /review/ HTTP/1.1" 401 499 ivanr [22/Sep/2004:19:00:15 +0100] "GET /review/ HTTP/1.1" 200 573 -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ]
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | OWASP NYC Local Chapter Meeting, Stan Guzik |
|---|---|
| Next by Date: | Re: HTTP sniffer for Digest Authentication?, Saqib . N . Ali |
| Previous by Thread: | Re: HTTP sniffer for Digest Authentication?, Saqib . N . Ali |
| Next by Thread: | Re: HTTP sniffer for Digest Authentication?, Saqib . N . Ali |
| Indexes: | [Date] [Thread] [Top] [All Lists] |