Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Sophos Web Protection Appliance clear_keys.pl Local Privilege Escalation

Disclosed
Sep 6, 2013
Created
May 30, 2018

Description

This module abuses a command injection on the clear_keys.pl perl script, installed with the
Sophos Web Protection Appliance, to escalate privileges from the "spiderman" user to "root".
This module is useful for post exploitation of vulnerabilities on the Sophos Web Protection
Appliance web ui, executed by the "spiderman" user. This module has been tested successfully
on Sophos Virtual Web Appliance 3.7.0.

Authors

Francisco Falcon
juan vazquez [email protected]

Platform

Linux

Architectures

x86

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/linux/local/sophos_wpa_clear_keys
msf exploit(sophos_wpa_clear_keys) > show targets
...targets...
msf exploit(sophos_wpa_clear_keys) > set TARGET < target-id >
msf exploit(sophos_wpa_clear_keys) > show options
...show and set options...
msf exploit(sophos_wpa_clear_keys) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.