The HTTP specification provides two parallel authentication mechanisms:
Basic HTTP AUTHis used to authenticate the user to the HTTP server.Proxy Server Authenticationis used to authenticate the user to an intermediate proxy server.
Basic HTTP auth scheme uses userID and password for authentication
- Client sends request without auth info as first request
- Server response contains
WWW-Authenticateheader field, requesting credentials- Header defines details of auth process as well
- Client asked to submit auth
- Response - Server transmits
realm- char string telling client who is requesting the data - Client uses b64 method for encoding identifier and password. Encoded character string transmitted to server in Authorization header field.

| Password Attack Type |
|---|
Dictionary attack |
Brute force |
Traffic interception |
Man In the Middle |
Key Logging |
Social engineering |
| We focus on first 2. |
Brute force put simply == trying all possible character combinations for length specified. PW Length of 4 = A-Z,0-9.
- Using only english characters this has 456,976 permutations
- PW length increase + mixed casing + numbers + special chars, eventually this would take millions of years.
- Pure bruteforces are not ideal, especially over network.
- Thus we have dictionary attacks.
Dict attacks guess with lists.