PAP: The Password Request and the Protection Around It
Before a Point-to-Point Protocol connection begins carrying normal network traffic, one side may need to identify itself to the other. Password Authentication Protocol, or PAP, offers a direct way to do it: send an identifier and a password, then wait for acceptance or rejection.
Point-to-Point Protocol (PPP) provides communication over a link between two devices. PAP is one specific authentication method defined for it. A website asking for a username and password is not automatically using PAP. The name refers to this particular exchange and its rules.
PAP and CHAP: Two Ways to Send a Password
The Password Is in the Request
The side presenting its identity is the peer. The side checking it is the authenticator. During PPP setup, the two can negotiate authentication before proceeding to the normal network-protocol phase.
The peer sends an Authenticate-Request containing its identifier and password. The authenticator checks the supplied identifier and password and returns an acknowledgment or rejection. The request may be repeated until a reply arrives or the exchange ends.
The PAP specification puts the password itself in that request.
And PAP provides no encryption of its own. If someone can observe the unprotected exchange, the password is there in the clear. Dots in a password-entry box hide it from a person looking at the screen; they don't change what the protocol sends.
PAP also supplies no built-in defense against reusing an observed request or repeatedly guessing passwords. Someone who obtains the password can try to present the same secret. Acceptance also doesn't encrypt the network traffic that follows.
An Outer Tunnel Can Protect the Exchange
Seeing PAP in a configuration therefore raises a second question: what surrounds it?
- Learn how networks really work, from cabling to routing, in one book.
- Prepare for the N10-009 exam with a guide written for it.
- Keep it on the shelf as a reference long after the test.
One example is EAP-TTLS, an Extensible Authentication Protocol (EAP) method using tunneled Transport Layer Security (TLS). EAP supplies a framework for authentication methods. In this method, TLS creates the protected connection through which the password travels.
The EAP-TTLS specification describes carrying a PAP-style username-and-password exchange inside that tunnel. An observer of the protected connection doesn't receive the inner password as readable text merely because PAP is involved.
TLS protects the exchange between the client and the TTLS server. That protection doesn't automatically cover later connections beyond the server, and bare PPP PAP still has no encryption of its own.
The client also needs to know which server it is trusting. Its digital certificate supplies identity information that the client must check against the expected server and trusted certificate issuers. An encrypted connection to a hostile server still delivers the password to that server.
CHAP: A Password Can Stay Hidden and Still Be Guessed

Point-to-Point Protocol: How PPP Sets Up a Connection

Password Sniffing: Who Can Read a Secret in Transit?

QUOTE:
"Amateurs hack systems, professionals hack people."
