Skip to main content

A command line tool to automate the exploitation of blind XPath injection vulnerabilities

Project description

XCat is a command line program that aides in the exploitation of blind XPath injection vulnerabilities. It can be used to retrieve the whole XML document being processed by a vulnerable XPath query, read arbitrary files on the hosts filesystem and utilize out of bound HTTP requests to make the server send data directly to xcat.

XCat is built to exploit boolean XPath injections (Where only one bit of data can be extracted in one request) and it requires you to manually identify the exploit first, this does not do that for you. Check out the docs at http://xcat.readthedocs.org/ for more info.

Note: This requires Python 3.4 to run.

An example:

>> xcat --public-ip="localhost" http://localhost:80 title=Bible title "Book found" run retrieve
Injecting using SingleQuoteString
Detecting features...
Supported features: XPath 2, String to codepoints, External DOC function, Entity injection, Substring search speedup
Retrieving /*[1]
<?xml version="1.0" encoding="utf-8"?>
<lib test="1" attribute1="3">
    <book>
            <!-- Comment -->
            <title>Bible</title>
            <description another="attribute">The holy book</description>
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xcat-0.7.zip (25.7 kB view details)

Uploaded Source

File details

Details for the file xcat-0.7.zip.

File metadata

  • Download URL: xcat-0.7.zip
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xcat-0.7.zip
Algorithm Hash digest
SHA256 e3c28f83c34111ff8ab2208e26ed590fbfa3b780d786ae5271c390a318724a05
MD5 f4b0ce53301d05c7cd5b18e07d59f6e1
BLAKE2b-256 8d3cf4beecf7087b05a8690ca89d6a053887ac364192eaa17f368a92691ac342

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page