Skip to content

Latest commit

 

History

History

CVE-2017-9805

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Struts 2.5 - 2.5.12 REST Plugin XStream RCE

Date:

06

Exploitdb:

42627

Cve:

CVE-2017-9805

Author:

Warflop

Description:

The REST Plugin in Apache Struts 2.1.2 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.

Type:

Deserialization of Untrusted Data

Affected Versions :

  • 2.5<2.5.12

References :

PoC Script

Arguments

- **debug**
  Debug Mode


- **url**
  The Target URL [Format: scheme://host]


- **help**
  Display The Help Menu


- **user-agent**
  User-Agent To Send To Server


- **cookie**
  Cookie String To Use


- **auth**
  Credentials To Use For HTTP Login [Format: username:password]


- **cmd**
  The Command To Execute On Remote Server


- **proxy**
  Proxy Server To Use [Format: scheme://host:port]


- **timeout**
  Max Timeout For The HTTP Requests


- **verbose**
  Be More Verbose

Arguments Resume


          --url [VALUE]		: The Target URL [Format: scheme://host]
          --user-agent [VALUE]		: User-Agent To Send To Server
          --cookie [VALUE]		: Cookie String To Use
          --proxy [VALUE]		: Proxy Server To Use [Format: scheme://host:port]
          --timeout [VALUE]		: Max Timeout For The HTTP Requests
          --auth [VALUE]		: Credentials To Use For HTTP Login [Format: username:password]
          --help        		: Display The Help Menu
          --verbose        		: Be More Verbose
          --debug        		: Debug Mode
          --cmd [VALUE]		: The Command To Execute On Remote Server
  ```