module

MS06-025 Microsoft RRAS Service RASMAN Registry Overflow

Disclosed
2006-06-13
Created
2018-05-30

Description

This module exploits a registry-based stack buffer overflow in the Windows Routing
and Remote Access Service. Since the service is hosted inside svchost.exe,
a failed exploit attempt can cause other system services to fail as well.
A valid username and password is required to exploit this flaw on Windows 2000.
When attacking XP SP1, the SMBPIPE option needs to be set to 'SRVSVC'.
Exploiting this flaw involves two distinct steps - creating the registry key
and then triggering an overwrite based on a read of this key. Once the key is
created, it cannot be recreated. This means that for any given system, you
only get one chance to exploit this flaw. Picking the wrong target will require
a manual removal of the following registry key before you can try again:
HKEY_USERS\.DEFAULT\Software\Microsoft\RAS Phonebook

Authors

pusscat pusscat@metasploit.com
hdm x@hdm.io

Platform

Windows

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/windows/smb/ms06_025_rasmans_reg
msf exploit(ms06_025_rasmans_reg) > show targets
...targets...
msf exploit(ms06_025_rasmans_reg) > set TARGET < target-id >
msf exploit(ms06_025_rasmans_reg) > show options
...show and set options...
msf exploit(ms06_025_rasmans_reg) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.