Rapid7 Vulnerability & Exploit Database

Palo Alto Networks readSessionVarsFromFile() Session Corruption

Back to Search

Palo Alto Networks readSessionVarsFromFile() Session Corruption

Disclosed
12/11/2017
Created
06/14/2018

Description

This module exploits a chain of vulnerabilities in Palo Alto Networks products running PAN-OS versions prior to 6.1.19, 7.0.19, 7.1.14, and 8.0.6. This chain starts by using an authentication bypass flaw to to exploit an XML injection issue, which is then abused to create an arbitrary directory, and finally gains root code execution by exploiting a vulnerable cron script. This module uses an initial reverse TLS callback to stage arbitrary payloads on the target appliance. The cron job used for the final payload runs every 15 minutes by default and exploitation can take up to 20 minutes.

Author(s)

  • Philip Pettersson <philip.pettersson@gmail com>
  • hdm <x@hdm.io>

Platform

Unix

Architectures

cmd

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

;