J-Security Center

Title: Multiple Vendor mopd User Inputted Data Used as Format String Vulnerability

Severity: HIGH

Description:

A buffer overflow exists in the mopd daemon, shipped with a number of popular operating systems. By supplying a filename containing the proper format strings (% strings), it is possible for a remote attacker to overwrite values on the stack. It may be possible to use this capability to execute arbitrary code on the affected machine.

To check for a vulnerable version, it is possible to look in the mopProcessDL() function, in process.c. If the pfile[] buffer is declared to be 17 bytes, it is vulnerable.

Affected Products:

  • NetBSD NetBSD 1.4.1 Alpha
  • NetBSD NetBSD 1.4.1 SPARC
  • NetBSD NetBSD 1.4.1 arm32
  • NetBSD NetBSD 1.4.1 x86
  • NetBSD NetBSD 1.4.2 Alpha
  • NetBSD NetBSD 1.4.2 SPARC
  • NetBSD NetBSD 1.4.2 arm32
  • NetBSD NetBSD 1.4.2 x86
  • OpenBSD OpenBSD 2.4.0
  • OpenBSD OpenBSD 2.5.0
  • OpenBSD OpenBSD 2.6.0
  • OpenBSD OpenBSD 2.7.0
  • RedHat PowerTools 6.0.0
  • RedHat PowerTools 6.1.0
  • RedHat PowerTools 6.2.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.