How i found 3 SSRF in one day on different bug bounty targets
The author found three SSRF vulnerabilities: one in a profile image URL parameter that fetched arbitrary URLs and reached AWS instance metadata, and two in JIRA instances via an OAuth icon-uri endpoint that loaded external pages. An attacker could make the server fetch internal resources and, in the first case, read cloud metadata.
My name is damanpreet singh. This is my first write-up, so please forgive me for my mistakes.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This is a first write-up by damanpreet singh, covering three server-side request forgery findings made on the same day, 21 August, against three different bug bounty targets. The targets are anonymised as target.com and jira.reports.target.com.
The first target is a shopping and gift card site. It has user accounts, a six digit OTP sent for verification, and a profile picture upload feature. The profile picture is stored through an API and the front end fetches it back from that API. The second and third targets both run Atlassian JIRA instances, and the finding there is in a JIRA servlet path.
Setup
The researcher signed up on the first target and used Burp Suite, including the Burp Collaborator client, to observe and replay requests. The browser in the captured request is Chrome 83.0.4103.116 on Linux x86_64. No other tooling, account role or precondition is described.
Finding it
On the first target, the researcher tried rate limiting against the six digit OTP for brute forcing and got no success, but found no rate limiting on sending unlimited OTPs. That is mentioned but not pursued further.
After uploading a profile picture, the researcher tried deleting it to see whether it was still stored on the server, and whether another user's picture could be deleted. Neither worked: deleted pictures were properly removed from the server, and there was no IDOR in deleting pictures.

Looking through the proxy history afterwards, the researcher found the request that saves the profile picture. It sends a JSON body containing a userid, an imgurl pointing at the site's own image API, and a type of jpeg. The server fetches the image from the URL in imgurl, which is the behaviour that makes the parameter interesting.
Exploitation
Step 1: Point imgurl at a Collaborator
The captured request, as shown in the write-up:
POST /user/dashboard/profile HTTP/1.1
Host: target.com
Connection: close
Content-Length: 132
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Origin: https://target.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://target.com/signin
Cookie: [redacted]
[{"userid":"21452","imgurl":"https://api.target.com/images/profiles/MjE0NTI==","type":"jpeg"}]
The imgurl value is the URL the server fetches to obtain the profile picture. The researcher replaced it with a Burp Collaborator client URL. The application answered with There is an error while fetching this image, please try again, but the Collaborator received some requests. So the server was reaching out, yet the request was still being rejected somewhere in the image handling.

Step 2: Remove type:jpeg
The researcher removed the type:jpeg field from the JSON body and sent the request again. This time the Collaborator subdomain appeared in the response body. The response shown is:
HTTP/1.1 200 OK
Server: Apache/2.4.46 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
X-Powered-By: PHP/5.6.40
Connection: close
<body>zg4w1rswxl5nazutwziseczjigz</body>

The response body shown contains the string zg4w1rswxl5nazutwziseczjigz. After removing the type field, the request returned the Collaborator subdomain in the response.
Step 3: Reach the AWS metadata endpoint
The target was hosted on AWS. The researcher requested the instance metadata path:
http://[redacted]/latest/meta-data/
and got the AWS instance metadata back.
The report gives this timeline for the first case: reported on 21 August, triaged after six or seven hours, and rewarded on 24 August.
Step 4: JIRA icon-uri on the second target
The second target ran a JIRA instance at jira.reports.target.com. The researcher checked the version, described only as 7.x.x something, then added the vulnerable path:
jira.reports.target.com/plugins/servlet/oauth/users/icon-uri?consumerUri=https://bing.com
The page loaded the Bing homepage, confirming the SSRF. The report was submitted but marked as a duplicate.

Step 5: The same JIRA path on a third target
Remembering another target that also used JIRA, the researcher found it, tested it, confirmed the SSRF and reported it. The target first thanked the researcher, then mailed some hours later to say the finding was out of scope.

Root cause
In the first case, the profile update endpoint takes a user supplied imgurl and has the server fetch it, with no restriction on where it may point. Removing the type field changed the response from an error to the Collaborator subdomain. The report does not show the server side code, so the exact check is not known;
In the JIRA cases, the icon-uri servlet accepts a consumerUri parameter and fetches it server side. The report does not describe the JIRA configuration or any defence that was in place.
Impact
On the first target, the SSRF let the researcher read the AWS instance metadata from [redacted], which is data only reachable from the server itself. The endpoint also made a request to the researcher's Collaborator host.
On the JIRA targets, the confirmed impact shown is that the server fetched an external page and returned it.
Fix
The measures that would address the first case are restricting imgurl to an allowlist of expected hosts, validating the fetched content regardless of whether type is present, and blocking requests to link-local and internal addresses such as [redacted]. For the JIRA instances, the icon-uri servlet should not fetch arbitrary consumerUri values, or should be restricted to trusted hosts.
Variants to test
- Remove optional fields from a JSON body that carries a URL, such as a
typeormimefield, and resend. A positive result is the server fetching the URL and returning the response body where it previously returned an error. - Point any image fetching parameter at a Collaborator URL and watch for interactions even when the application shows an error. A positive result is a DNS or HTTP hit from the target's infrastructure.
- Request
http://[redacted]/latest/meta-data/through the same parameter on AWS hosted targets. A positive result is metadata content in the response. - On JIRA instances, try
/plugins/servlet/oauth/users/icon-uri?consumerUri=with an external URL. A positive result is the external page rendered back through the JIRA host. - Check version banners and server headers on JIRA and other products for known SSRF paths before assuming a target is clean.
What happened, in plain words
A security researcher spent a day hunting for bugs on three different bug bounty programmes. A bug bounty programme is a company that invites people to test its systems and pays for real problems they find. On that one day, 21 August, the researcher found the same class of bug three times, on three separate targets. The bug is called server-side request forgery, or SSRF.
To understand SSRF, imagine a hotel receptionist who will fetch anything you ask for from anywhere in the building. Normally you can only reach the lobby, but the receptionist has keys to every room. If you can trick the receptionist into fetching something from a locked room and handing it to you, you have reached a place you were never allowed to go. In a web application, the server is the receptionist. It sits inside a private network and can reach internal machines that you, sitting at home in your browser, cannot. SSRF means you make the server send a request somewhere of your choosing, and often you get to see the answer.
The three findings were:
- A shopping and gift card site fetched profile pictures from a URL you supplied. By changing that URL, the researcher made the server contact a server he controlled, and also requested the site's cloud metadata.
- A JIRA instance (JIRA is a popular issue-tracking product made by Atlassian) had a page that fetched an icon from a URL you supplied. The researcher pointed it at Bing and the JIRA server fetched Bing's homepage. That report was marked as a duplicate, meaning someone else had already reported the same thing.
- Another JIRA instance had the same problem. The researcher reported it, the target thanked him, and then said the finding was out of scope, meaning it fell outside the rules of what they were willing to accept.
Below is the whole story, step by step, with every request exactly as it was sent, and an explanation of each part.
The tools and the setup
The researcher used a browser and a tool called Burp Suite. Burp Suite is a program that sits between your browser and the website and lets you see, pause, edit and resend every request. Think of it as a recording device plus an editing desk for web traffic.
One part of Burp Suite is the Burp Collaborator client. It gives you a unique, throwaway address on the internet that you control. If anything, anywhere, sends a request to that address, the Collaborator records it. This is how you prove that a server actually made a request: you give the server your Collaborator address, and if you see a hit, the server reached out. It is like leaving a marked banknote in a room and seeing whether it comes back to you.
The browser in the captured request identifies itself as Chrome 83.0.4103.116 on Linux x86_64. That detail is in the request headers and is not important to the bug itself.
Target one: the shopping site
The first target is anonymised as target.com. It sells shopping gift cards and has user accounts. When you sign up, it sends a six digit OTP, a one-time password, to verify you. An OTP is a short code that is valid once, usually sent by email or SMS, to prove you own the account.
The researcher first tried to see whether the OTP could be guessed by brute force. Brute force means trying every possible value in turn. A six digit code has a million possibilities, which is a lot, but if a site lets you try as fast as you like, it becomes practical. The researcher found no success there, but noticed something else: there was no rate limiting on sending unlimited OTPs. Rate limiting is a cap on how often you can do something, like a bouncer who only lets you try the door three times a minute. That observation is mentioned but not pursued further in the write-up.
Next, the researcher uploaded a profile picture. Then he tried to delete it, to answer two questions: is the picture really removed from the server, or is it still stored somewhere? And can one user delete another user's picture? The second question is about a class of bug called IDOR, insecure direct object reference, where changing an identifier in a request lets you touch someone else's data. Neither worked. Deleted pictures were properly removed from the server, and there was no IDOR in deleting pictures.

After that, the researcher looked back through the proxy history, which is the log of every request Burp Suite has recorded. There he found the request that saves the profile picture. It looked like this:
POST /user/dashboard/profile HTTP/1.1
Host: target.com
Connection: close
Content-Length: 132
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Origin: https://target.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://target.com/signin
Cookie: [redacted]
[{"userid":"21452","imgurl":"https://api.target.com/images/profiles/MjE0NTI==","type":"jpeg"}]
Line by line, in plain words:
POST /user/dashboard/profile HTTP/1.1is the request line. POST means "here is some data, please store it". The path/user/dashboard/profileis the page or endpoint on the server that handles profile updates. HTTP/1.1 is the version of the web protocol being spoken.Host: target.comtells the server which website the request is for. One server can host many sites, so this is how it knows which one you mean.Connection: closeasks the server to close the connection after answering.Content-Length: 132says how many bytes of data follow the blank line.User-Agentdescribes the browser and operating system that sent the request.Origin: https://target.comsays which site the request came from. Browsers add this automatically for cross-site requests.Sec-Fetch-Site,Sec-Fetch-ModeandSec-Fetch-Destare extra hints modern browsers add about the kind of request this is.same-originmeans it came from the same site.Referersays which page you were on when the request was made. Here it was the sign-in page.Cookie: [redacted]is the session cookie. A cookie is a small piece of data the browser stores and sends back with every request. The session cookie is what proves you are logged in, like a wristband at an event. It is a secret, so it is redacted here.- The blank line separates the headers from the body.
- The body is JSON, a text format for structured data. It is a list containing one object with three fields:
useridis the account number,imgurlis the address of the image, andtypesays the image is ajpeg.
The important part is imgurl. The server takes that URL and fetches the image from it. That is the behaviour that makes the parameter interesting: if the server will fetch any URL you give it, you can ask it to fetch something it should not.
Step 1: Point imgurl at the Collaborator
The researcher replaced the value of imgurl with his Burp Collaborator client address. The application answered with There is an error while fetching this image, please try again. But the Collaborator received some requests. So the server was reaching out, yet the request was still being rejected somewhere in the image handling. The application returned an error, but the Collaborator received some requests.

Step 2: Remove type:jpeg
The researcher removed the type:jpeg field from the JSON body and sent the request again. This time the Collaborator subdomain appeared in the response body. The response shown is:
HTTP/1.1 200 OK
Server: Apache/2.4.46 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
X-Powered-By: PHP/5.6.40
Connection: close
<body>zg4w1rswxl5nazutwziseczjigz</body>
Line by line:
HTTP/1.1 200 OKis the status line. 200 means the request succeeded.Server: Apache/2.4.46 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4tells you the web server software and some of its modules. Apache is the web server, cPanel is a hosting control panel, OpenSSL handles encryption, and mod_bwlimited is a bandwidth limiting module.X-Powered-By: PHP/5.6.40says the site is built with PHP, a programming language, version 5.6.40.Connection: closeagain asks to close the connection after the answer.- The blank line separates headers from body.
- The body contains the random-looking string zg4w1rswxl5nazutwziseczjigz.
After removing the type field, the response body contained the Collaborator subdomain.

Step 3: Reach the AWS metadata endpoint
The target was hosted on AWS, Amazon Web Services, a cloud provider. Cloud servers have a special internal address, [redacted], that only the server itself can reach. It serves metadata about the instance: information about the machine, and sometimes temporary credentials. The researcher requested:
http://[redacted]/latest/meta-data/
and got the AWS instance metadata back. This is the classic SSRF payoff: the server can reach an internal address that you cannot, and it hands you the contents.
The report gives this timeline for the first case: reported on 21 August, triaged after six or seven hours, and rewarded on 24 August. Triaged means a human on the programme looked at it and confirmed it was a real issue.
Target two: JIRA icon-uri
The second target ran a JIRA instance at jira.reports.target.com. JIRA is issue-tracking software: teams use it to record tasks, bugs and tickets. The researcher checked the version, described only as 7.x.x something, then added the vulnerable path:
jira.reports.target.com/plugins/servlet/oauth/users/icon-uri?consumerUri=https://bing.com
In plain words: jira.reports.target.com is the host. /plugins/servlet/oauth/users/icon-uri is a page inside JIRA that fetches an icon. ?consumerUri=https://bing.com is a parameter, a named value passed in the URL. The parameter is called consumerUri, and its value is the address the server should fetch. The researcher set it to Bing, and the page loaded the Bing homepage. That confirms the SSRF: the JIRA server fetched an external page and returned it through the JIRA host.
The report was submitted but marked as a duplicate, meaning someone else had already reported the same issue.

Target three: the same JIRA path again
Remembering another target that also used JIRA, the researcher found it, tested it, confirmed the SSRF and reported it. The target first thanked the researcher, then mailed some hours later to say the finding was out of scope. Out of scope means it fell outside the rules of the programme, so they would not treat it as a valid report.

Why this works
In the first case, the profile update endpoint takes a user supplied imgurl and has the server fetch it, with no restriction on where it may point. The type field appears to be tied to validation of the fetched content, and removing it let the request through. The report does not show the server side code, so the exact check is not known;
In the JIRA cases, the icon-uri servlet accepts a consumerUri parameter and fetches it server side. The report does not describe the JIRA configuration or any defence that was in place.
What it means
On the first target, the SSRF let the researcher read the AWS instance metadata from [redacted], which is data only reachable from the server itself. The endpoint also made a request to the researcher's Collaborator host.
On the JIRA targets, the confirmed impact shown is that the server fetched an external page and returned it.
How to fix it
The measures that would address the first case are restricting imgurl to an allowlist of expected hosts, validating the fetched content regardless of whether type is present, and blocking requests to link-local and internal addresses such as [redacted]. For the JIRA instances, the icon-uri servlet should not fetch arbitrary consumerUri values, or should be restricted to trusted hosts.
Things to try on your own targets
- Remove optional fields from a JSON body that carries a URL, such as a
typeormimefield, and resend. A positive result is the server fetching the URL and returning the response body where it previously returned an error. - Point any image fetching parameter at a Collaborator URL and watch for interactions even when the application shows an error. A positive result is a DNS or HTTP hit from the target's infrastructure.
- Request
http://[redacted]/latest/meta-data/through the same parameter on AWS hosted targets. A positive result is metadata content in the response. - On JIRA instances, try
/plugins/servlet/oauth/users/icon-uri?consumerUri=with an external URL. A positive result is the external page rendered back through the JIRA host. - Check version banners and server headers on JIRA and other products for known SSRF paths before assuming a target is clean.
Glossary
- API: an interface that lets one piece of software ask another for data or actions, like a waiter taking your order to the kitchen.
- AWS: Amazon Web Services, a cloud provider that rents out servers and services over the internet.
- Brute force: trying every possible value in turn until one works.
- Burp Collaborator: a service that gives you a unique address and records any request sent to it, used to prove a server made a request.
- Burp Suite: a tool that sits between your browser and a website so you can see, pause, edit and resend requests.
- Cookie: a small piece of data a browser stores and sends back with requests, often used to prove you are logged in.
- Duplicate: a report for an issue that someone else has already reported.
- Endpoint: a specific address on a server that handles a particular kind of request.
- IDOR: insecure direct object reference, a bug where changing an identifier lets you access someone else's data.
- Instance metadata: information a cloud server can read about itself from an internal address, sometimes including temporary credentials.
- JIRA: issue-tracking software made by Atlassian, used to record tasks, bugs and tickets.
- JSON: a text format for structured data, made of objects with named fields.
- OTP: one-time password, a short code valid once, used to verify you own an account.
- Out of scope: outside the rules of a bug bounty programme, so not accepted as a valid report.
- Parameter: a named value passed in a URL or request, such as
consumerUri=https://bing.com. - Rate limiting: a cap on how often you can do something in a period of time.
- Servlet: a small program inside a Java web server that handles a particular kind of request.
- SSRF: server-side request forgery, a bug where you make a server send a request to an address of your choosing, often reaching internal systems.
- Triaged: reviewed by a human on the programme and confirmed as a real issue.
- User-Agent: a header that describes the browser and operating system that sent a request.