CPSA ยท Open source information gathering
Information leakage in mail and news headers
Reading Received lines, Message-ID and X- headers to reveal internal hosts and software.
Key points
- Every mail server prepends a Received line, so headers record the path, newest hop on top.
- Read Received lines from the bottom up to follow the message from its origin.
- Each line can show host names, internal IP addresses, mail software.
- Other headers: Message-ID (often host or domain), X-Mailer or User-Agent (client software), X-Originating-IP.
- News posts carry similar path and posting-host headers.
Source: https://www.rfc-editor.org/rfc/rfc5321
Practice questions
In a message's headers, where is the Received line added by the most recent mail server?
- At the top of the header block
- At the bottom of the header block
- Always directly after the Subject line
- Received lines are stored separately from the headers
Show answer
Answer: A. At the top of the header block
Each relay prepends its own Received line, so the newest hop is at the top and the oldest at the bottom. That is why you read from the bottom up to follow the message from its origin.
Which header fields commonly reveal information about the sender's environment?
- Received lines
- X-Mailer or User-Agent
- X-Originating-IP
- Date, which lists the sender's firewall rules
- Content-Length, which holds the sender's password
Show answer
Answer: A. Received lines, B. X-Mailer or User-Agent, C. X-Originating-IP
Received lines show hosts, addresses and mail software, X-Mailer or User-Agent names the sending client, and X-Originating-IP can expose the sender's address. A Date header shows a time, not firewall rules, and Content-Length is a byte count.
True or false: every Received line in a message can be fully trusted, because each relay adds its own honestly.
Show answer
Answer: False
Any sender can add fake Received lines at the bottom before the message enters the real mail system. Only the lines added by servers you control or trust can be relied on, and the lines below them are claims.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
