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-46364---Apache-CXF-XOP-Include-LFI-PoC — Proof-of-concept exploit for CVE-2022-46364, a local file inclusion vulnerability in Apache CXF via crafted XOP Include elements in SOAP requests, allowing arbitrary file read. | Kitploit
Tools/GitHubGitHub/shashivanth009/cve-2022-46364---apache-cxf-xop-include-lfi-poc
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubshashivanth009/cve-2022-46364---apache-cxf-xop-include-lfi-poc

CVE-2022-46364---Apache-CXF-XOP-Include-LFI-PoC

Proof-of-concept exploit for CVE-2022-46364, a local file inclusion vulnerability in Apache CXF via crafted XOP Include elements in SOAP requests, allowing arbitrary file read.

View Repository
125 months 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

Apache CXF XOP Include LFI (CVE-2022-46364)

Overview

This repository contains a Proof-of-Concept (PoC) exploit for CVE-2022-46364, a Local File Inclusion (LFI) vulnerability in Apache CXF.

The vulnerability arises due to improper handling of XOP (XML-binary Optimized Packaging) Include elements in SOAP requests, allowing attackers to read arbitrary files from the server.


Vulnerability Details

  • CVE ID: CVE-2022-46364
  • Component: Apache CXF
  • Vulnerability Type: Local File Inclusion (LFI)
  • Attack Vector: Remote (unauthenticated in some cases)
  • Impact: Arbitrary file read on the server

Root Cause

Apache CXF improperly processes <xop:Include> elements inside SOAP requests. By supplying a crafted href (e.g., file:///etc/passwd), the server may include and return local file contents.


Affected Versions

  • Apache CXF versions prior to the patched release (3.4.x / 3.5.x depending on branch)

Always verify the exact vulnerable version in your target environment.


Exploitation Flow

  1. Attacker sends a crafted SOAP request
  2. Includes <xop:Include href="file:///path/to/file">
  3. Server processes the request and reads the local file
  4. File content is returned inside the SOAP response

Repository Structure

root@kitploit:~
.
├── cxf_lfi.sh       # Exploit script
├── README.md        # Documentation
├── LICENSE          # MIT License
└── .gitignore

Requirements

  • Bash
  • curl
  • base64 (optional, for decoding output)

Usage

1. Make script executable

root@kitploit:~
chmod +x cxf_lfi.sh

2. Edit target URL

Update the target inside the script:

root@kitploit:~
TARGET="http://<TARGET_IP>:8080/employeeservice"

3. Run exploit

root@kitploit:~
./cxf_lfi.sh file:///etc/passwd

Example Attacks

Example 1: Read system users

root@kitploit:~
./cxf_lfi.sh file:///etc/passwd

Example 2: Read application secrets

root@kitploit:~
./cxf_lfi.sh file:///home/user/.ssh/id_rsa

Sample Output

root@kitploit:~
[+] Target: http://10.10.10.10:8080/employeeservice
[+] File: file:///etc/passwd
[+] Extracted Content:

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin

Notes & Limitations

  • Some servers may:

    • Return base64-encoded content
    • Restrict file access via permissions
    • Sanitize or block file:// schemes
  • Output parsing depends on response format and may require manual inspection.


Detection & Mitigation

Detection

  • Monitor unusual SOAP requests containing:

    • <xop:Include>
    • file:// URIs

Mitigation

  • Upgrade Apache CXF to a patched version
  • Disable or restrict XOP processing if not required
  • Validate and sanitize incoming SOAP payloads

Ethical Use Disclaimer

This project is intended for:

  • Educational purposes
  • Authorized penetration testing

Do not use this tool on systems without explicit permission.


References

  • Apache CXF Security Advisories
  • CVE Database (CVE-2022-46364)

Author

Developed as part of security research and CTF practice.

Download Tool