join
donate

NTP Bug 3386

NTP-01-011 NTP: ntpq_stripquotes() returns incorrect value (Info)

  • Date Resolved: 21 Mar 2017
  • References: Sec 3386
  • Affects: All versions of NTP, up to but not including ntp-4.2.8p10, and ntp-4.3.0 up to, but not including ntp-4.3.94.
  • CVSS2: None 0.0 (AV:N/AC:H/Au:N/C:N/I:N/A:N)
  • CVSS3: None 0.0 CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N
  • Summary: The NTP Mode 6 monitoring and control client, ntpq, uses the function ntpq_stripquotes() to remove quotes and escape characters from a given string. According to the documentation, the function is supposed to return the number of copied bytes but due to incorrect pointer usage this value is always zero. Although the return value of this function is never used in the code, this flaw could lead to a vulnerability in the future. Since relying on wrong return values when performing memory operations is a dangerous practice, it is recommended to return the correct value in accordance with the documentation pertinent to the code.
  • Mitigation:
  • Credit: This weakness was discovered by Cure53.


This topic: Main > SecurityNotice > NtpBug3386
Topic revision: r1 - 2017-03-22 - 01:32:54 - HarlanStenn
 
SSL security by CAcert
Get the CAcert Root Certificate
This site is powered by the TWiki collaboration platform
IPv6 Ready
Copyright & 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding the site? Send feedback