Rapid7 Vulnerability & Exploit Database

NTP Daemon readvar Buffer Overflow

Back to Search

NTP Daemon readvar Buffer Overflow

Disclosed
04/04/2001
Created
05/30/2018

Description

This module exploits a stack based buffer overflow in the ntpd and xntpd service. By sending an overly long 'readvar' request it is possible to execute code remotely. As the stack is corrupted, this module uses the Egghunter technique.

Author(s)

  • aushack <patrick@osisecurity.com.au>

Platform

Linux

Architectures

x86

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/ntp/ntp_overflow
msf exploit(ntp_overflow) > show targets
    ...targets...
msf exploit(ntp_overflow) > set TARGET < target-id >
msf exploit(ntp_overflow) > show options
    ...show and set options...
msf exploit(ntp_overflow) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;