Network Time Protocol Control Mode Unauthenticated Trap Information Disclosure and DDoS Amplification Vulnerability
The control mode (mode 6) of ntpd allows unauthenticated packets to set or unset traps, which can leak peer variables or be abused for DDoS amplification. An attacker could use this to impersonate peers, amplify attacks, or disable legitimate monitoring.
Originally disclosed on Cisco Talos
An exploitable configuration modification vulnerability exists in the control mode (mode 6) functionality of ntpd. A specially crafted control mode packet can set ntpd traps, providing information disclosure and DDoS amplification, and unset ntpd traps, preventing legitimate monitoring.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could leak peer variables to impersonate peers, use ntpd as a DDoS amplifier with a 12-13x factor, or remove legitimate traps to evade monitoring; the `restrict default notrap` mitigation can block unauthorized trap receivers but does not prevent the monitoring evasion.
What the attacker needed
Network access to ntpd control mode; No authentication required; For DDoS, amplifier allows traps to victim
The fix
Authentication should be required to modify trap configuration.
How it was found
- Attacker sends a forged SETTRAP packet to the victim ntpd, specifying the attacker's host as the trap receiver.
- Attacker triggers a reportable event for a peer, such as by spoofing an invalid crypto-NAK or incorrectly authenticated packet from that peer.
- Victim ntpd sends a trap to the attacker's host containing peer variables, leaking information.
- For DDoS amplification, attacker forges a SETTRAP packet from the victim to the amplifier, causing the amplifier to set a trap for the victim.
- Attacker repeatedly triggers reportable events, causing trap messages to be sent to the victim, amplifying the attack.
- To evade monitoring, attacker spoofs the source address of a legitimate trap receiver and sends an UNSETTRAP message to remove traps.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
NTP is the protocol that keeps computer clocks in sync. ntpd is a common program that implements it. The control mode lets administrators send commands to ntpd, but this report found that some commands to change trap settings did not require any authentication, so anyone on the network could send them.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.