CVE-2014-9293
ntp: automatic generation of weak default key in config_auth()
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
The config_auth function in ntpd in NTP before 4.2.7p11, when an auth key is not configured, improperly generates a key, which makes it easier for remote attackers to defeat cryptographic protection mechanisms via a brute-force attack.
La función config_auth en ntpd en NTP anterior a 4.2.7p11, cuando no se configura una clave de autenticación, incorréctamente genera una clave, esto hace que atacantes remotos puedan romper los mecanismos de protección fácilmente mediante un ataque de fuerza bruta.
It was found that ntpd automatically generated weak keys for its internal use if no ntpdc request authentication key was specified in the ntp.conf configuration file. A remote attacker able to match the configured IP restrictions could guess the generated key, and possibly use it to send ntpdc query or configuration requests.
If no authentication key is defined in the ntp.conf file, a cryptographically-weak default key is generated. ntp-keygen before 4.2.7p230 uses a non-cryptographic random number generator with a weak seed to generate symmetric keys. A remote unauthenticated attacker may craft special packets that trigger buffer overflows in the ntpd functions crypto_recv() (when using autokey authentication), ctl_putdata(), and configure(). The resulting buffer overflows may be exploited to allow arbitrary malicious code to be executed with the privilege of the ntpd process. A section of code in ntpd handling a rare error is missing a return statement, therefore processing did not stop when the error was encountered. This situation may be exploitable by an attacker. Stephen Roettger of the Google Security Team, Sebastian Krahmer of the SUSE Security Team and Harlan Stenn of Network Time Foundation discovered that the length value in extension fields is not properly validated in several code paths in ntp_crypto.c, which could lead to information leakage or denial of service. Stephen Roettger of the Google Security Team reported that ACLs based on IPv6 ::1 addresses can be bypassed. The ntp package has been patched to fix these issues.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2014-12-05 CVE Reserved
- 2014-12-20 CVE Published
- 2024-08-06 CVE Updated
- 2024-08-06 First Exploit
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
CAPEC
References (23)
URL | Tag | Source |
---|---|---|
http://advisories.mageia.org/MGASA-2014-0541.html | X_refsource_confirm | |
http://bugs.ntp.org/show_bug.cgi?id=2665 | X_refsource_confirm | |
http://secunia.com/advisories/62209 | Third Party Advisory | |
http://www.kb.cert.org/vuls/id/852879 | Third Party Advisory |
|
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html | X_refsource_confirm |
|
http://www.securityfocus.com/bid/71757 | Vdb Entry | |
https://h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04790232 | X_refsource_confirm | |
https://h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04916783 | X_refsource_confirm | |
https://kc.mcafee.com/corporate/index?page=content&id=SB10103 | X_refsource_confirm | |
https://www.arista.com/en/support/advisories-notices/security-advisories/1047-security-advisory-8 | X_refsource_misc |
URL | Date | SRC |
---|---|---|
http://bk1.ntp.org/ntp-dev/ntpd/ntp_config.c?PAGE=diffs&REV=4b6089c5KXhXqZqocF0DMXnQQsjOuw | 2024-08-06 |
URL | Date | SRC |
---|