Visual RFC.
ALL RFCs / RFC 3986
Read the RFC ↗
RFC 3986 / SECURITY

An identifier can mislead

06

A visually persuasive URI can contain an authority different from the one a reader expects.

RFC 3986 · § 7.6EXAMPLE
4 / 4
04
Make the destination unambiguous.

Prefer a presentation that distinguishes host, userinfo, and path.

An identifier can misleadA magnifying-glass doodle locates the userinfo separator and reveals the actual host in a deceptive URI.Look past a persuasive prefixhttps://bank.example@other.example/looks familiar@ ends userinfoother.examplebank.exampleuserinfoDestination: other.exampleURI syntax parses the destination; it does not prove trust.

Key idea: Show the parsed destination clearly.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Userinfo can be constructed to resemble a trusted domain while the host names a different destination.
  • Untrusted URI text must be handled according to the relevant scheme and application security rules.
  • Generic URI syntax does not itself define a browser-origin policy or prove a resource is trustworthy.

The examples simplify the wire representation. Follow the linked specification and application profile for implementation.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 3986

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗