Skip to main content

One stop place for exploiting all Jira instances in your proximity.

Project description

Jiraffe

forthebadge forthebadge forthebadge

Jiraffe - One stop place for exploiting all Jira instances in your proximity

Jiraffe logo
See the demo

Installation

Use pip to install Jiraffe. This is the recommended way of running Jiraffe.

$ pip install jiraffe

Usage

$ py -m jiraffe
usage: jiraffe [-h] [-t https://example-jira-instance.com]


                                                                           /)/)
                                                                          ( ..\
      ___  __      _______        __       _______   _______   _______    /'-._)
     |"  ||" \    /"      \      /""\     /"     "| /"     "| /"     "|  /#/
     ||  |||  |  |:        |    /    \   (: ______)(: ______)(: ______) /#/  @0x48piraj
     |:  ||:  |  |_____/   )   /' /\  \   \/    |   \/    |   \/    |
  ___|  / |.  |   //      /   //  __'  \  // ___)   // ___)   // ___)_
 /  :|_/ )/\  |\ |:  __   \  /   /  \\  \(:  (     (:  (     (:      "|
(_______/(__\_|_)|__|  \___)(___/    \___)\__/      \__/      \_______)


Options:
  -t https://example-jira-instance.com, --target https://example-jira-instance.com
                        Target Jira Instance URL
  -v, --verbose         Verbose output
  -a, --auto            Automatic mode

Exploits for

CVE Impact Description Version Affected Details
CVE-2017-9506 HIGH The IconUriServlet of the Atlassian OAuth Plugin from version 1.3.0 before version 1.9.12 and from version 2.0.0 before version 2.0.4 allows remote attackers to access the content of internal network resources and/or perform an XSS attack via Server Side Request Forgery (SSRF). Jira < 7.3.5 CVE-2017-9506
CVE-2019-8449 LOW The /rest/api/latest/groupuserpicker resource in Jira before version 8.4.0 allows remote attackers to enumerate usernames via an information disclosure vulnerability. 2.1 - 8.3.4 CVE-2019-8449
CVE-2019-11581 CRITICAL Atlassian JIRA Template injection vulnerability RCE Jira < 7.6.14 CVE-2019-11581
CVE-2019-8451 HIGH Pre-authentication server side request forgery (SSRF) vulnerability found in the /plugins/servlet/gadgets/makeRequest resource. Jira == 7.6.0 && Jira.7.6.0 < 7.13.9, 8.4.0 CVE-2019-8451

Majority of the bugs stated above poses Server-Side Request Forgery (SSRF) vulnerability, where attacker can abuse a specific functionality on the server to read or update internal resources. The attacker can supply or a modify a URL which the code running on the server will read or submit data to, and by carefully selecting the URLs, the attacker may be able to read server configuration such as AWS metadata, connect to internal services like HTTP enabled databases or perform post requests towards internal services which are not intended to be exposed.

Currently, some of the common Amazon AWS credentials leak attacks are present with an additional Custom Payload Option for sending crafted payloads for any cloud platform (Amazon AWS, Google Cloud, etc.). For sending custom payloads, take help from PayloadsAllTheThings — SSRF URL for Cloud Instances

URL Paths Jiraffe Currently Supports:
Root Path: /latest/meta-data/{hostname,public-ipv4,...}
User Data : /latest/user-data
AWS Credentials : /latest/meta-data/iam/security-credentials/

Feel free to implement more post exploitation modules for vendor specifc deployments.

Demo

Jiraffe Demo

Internal Workings

Reconnaissance — Jira version detection

If unauthenticated, one can access Confluence's landing page and retrieve version information from these places:

  • Login page footer.

  • Response Head AJS Tags.

  • Response Body What's New Link.

  • Response Body Confluence Help Link.

References

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

jiraffe-2.0.1.tar.gz (4.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jiraffe-2.0.1-py3.7.egg (17.8 kB view details)

Uploaded Egg

jiraffe-2.0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file jiraffe-2.0.1.tar.gz.

File metadata

  • Download URL: jiraffe-2.0.1.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for jiraffe-2.0.1.tar.gz
Algorithm Hash digest
SHA256 8fbcfe3539fe73ea8ae96c6bf021c754130170eeb91e04896aed12aa6cd61902
MD5 5cf7f5137e2992bd49b310f45d8eecc6
BLAKE2b-256 4a952b3a0d97a7eb8701191fd9359ba6e4a4ce54443f0f4dc04e98c7f3ac3fe1

See more details on using hashes here.

File details

Details for the file jiraffe-2.0.1-py3.7.egg.

File metadata

  • Download URL: jiraffe-2.0.1-py3.7.egg
  • Upload date:
  • Size: 17.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for jiraffe-2.0.1-py3.7.egg
Algorithm Hash digest
SHA256 db51c9ac7cc12d41669d2dfaa7d2f0999419ec1b8a0c8919b965f9d61aada01c
MD5 f6a96947b1a73503a87706bd95e93f7f
BLAKE2b-256 ce7bf35523e3257dd98a298e1f139f30567903b1bed95ec59cd5866bd99f72cc

See more details on using hashes here.

File details

Details for the file jiraffe-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: jiraffe-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for jiraffe-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 507bca65977059e9d5f5355f48624ab0c33f0330bc7f778be5d14db9cc1ffb66
MD5 5cfaf5c72ab27ce3726b0a69fcee2491
BLAKE2b-256 1e0496d043b4776b158359096c8efe89eec54548037c7798313ffaae8566503f

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