How recon helped me to find an interesting bug…
Published on medium.com
Hello infosec community! I’m back again to share an interesting finding with you.
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 write-up describes a finding made during a recon-focused month on a responsible disclosure program whose scope was *.target.com. The vulnerable component was a MicroStrategy deployment reachable at a subdomain of the target, specifically the taskProc servlet under the /MicroStrategy/servlet/ path. The feature involved is the shortURL task: a servlet endpoint that accepts a source URL in the srcURL parameter and, when given a tiny URL, redirects the user to it. The researcher describes MicroStrategy as a company providing cloud-based services, which is what prompted the later research.
Setup
Before starting, the researcher rented a VPS and installed recon tooling for subdomain enumeration, content discovery and parameter discovery. The tools named in the report are:
- subfinder for subdomain enumeration
- amass for subdomain enumeration
- httpx for probing
- nuclei for template-based scanning
No versions are given. The only precondition stated is that the program's scope covered *.target.com.
Finding it
The recon phase ran as follows:
- Enumerate subdomains with subfinder and amass, then combine the output of both tools.
- Probe the combined list with httpx and save the output to a text file.
- Run nuclei against that file with the vulnerabilities template set:
cat final.txt | nuclei -t path/to/nuclei-templates/vulnerabilities -o results.txt
Among the results was a subdomain flagged as vulnerable to a MicroStrategy SSRF. The URL reported was:
https://something.target.com/MicroStrategy/servlet/taskProc?taskId=shortURL&taskEnv=xml&taskContentType=xml&srcURL=
The researcher first tried an open redirect by setting srcURL to bing.com, and it did not redirect. Then an SSRF attempt was made, which also did not work, so the finding was initially treated as a false positive.
A search for the word MicroStrategy revealed it to be a company providing cloud-based services. A further search for "Microstrategy vulnerability" led to a Medium blog post about an SSRF vulnerability that contained the exact same URL. Reading it explained the behaviour: the srcURL parameter only accepts tiny URLs, which is why the plain bing.com value did not redirect.

Exploitation
Step 1: Confirm the redirect with a tiny URL
A tiny URL was created for https://bing.com and placed in the srcURL parameter. The endpoint then redirected to bing.com, confirming the open redirect.
Step 2: Rule out SSRF
An SSRF attempt was made, but there was no SSRF: the site redirected the user rather than fetching data from the external URL.
Step 3: Escalate to XSS
To increase impact, the researcher looked for a page hosting an XSS payload, obtained one, created a tiny URL for it, and pasted that tiny URL into the srcURL parameter. The XSS executed successfully.
The report does not include the exact tiny URLs, the XSS payload, or the HTTP responses.
Root cause
The taskProc servlet's shortURL task takes a user-supplied srcURL and issues a redirect to it. The observed behaviour was that the srcURL parameter only accepted tiny URLs; once a tiny URL was supplied, the endpoint redirected to its destination. Because the endpoint redirects rather than fetches, it is an open redirect rather than an SSRF, which is likely why the nuclei SSRF template produced a result that did not hold up as SSRF. The report does not describe any server-side allowlist or destination check beyond the tiny-URL requirement.
Impact
An attacker can craft a link on the trusted target.com subdomain that redirects victims to an arbitrary destination. By pointing the redirect at a page hosting an XSS payload, the researcher showed that the XSS executed after following the redirect. The report does not state which origin the XSS executed in, nor any further consequences. The researcher submitted the report and, after 4 to 5 days, received a response thanking them for the report; the reward was inclusion in the company's security researcher Hall of Fame, with no bounty.
Fix
A reasonable fix would be to validate the resolved destination of srcURL against an allowlist and reject values that resolve outside it, rather than accepting any tiny URL.
Variants to test
- Run nuclei's vulnerability templates over a combined subfinder and amass list, then manually verify each hit. A positive result is a flagged endpoint that still behaves as described after manual testing.
- Search for known product-specific endpoints (here, MicroStrategy
taskProc) on in-scope subdomains and read public research on them. A positive result is an endpoint whose parameters behave as the public research describes. - For redirect-style parameters, try a plain host first, then a shortened URL if the plain host is rejected. A positive result is the endpoint redirecting to the supplied destination.
- Check whether the redirect can be chained to a page hosting an XSS payload. A positive result is script execution after following the redirect.
- Distinguish redirect from fetch: if the server returns a redirect rather than the content of the external URL, the issue is an open redirect, not SSRF.
What happened, in plain words
A security researcher spent a month focused on recon (short for reconnaissance, the work of mapping out what a company has on the internet before testing any of it). While doing that on a company's responsible disclosure program, he found a web address on one of the company's subdomains that would send a visitor on to any destination he chose. That kind of flaw is called an open redirect. He then made the redirect point at a page hosting an XSS payload, and the XSS executed successfully. He reported it, the company thanked him, and he was added to their Hall of Fame. No money changed hands.
The rest of this article walks through exactly how he got there, step by step, explaining each idea from scratch.
Some background ideas first
Before the steps, a few words that come up constantly.
- A domain is the name you type to reach a site, like
example.com. A subdomain is a name placed in front of it, likeshop.example.comormail.example.com. Big companies have many subdomains, often dozens or hundreds, and each one is a separate service that can have its own bugs. - A URL is the full address of a page, including the part after the question mark. That part is called the query string, and it is made of parameters: little name-and-value pairs joined by
&. In?colour=blue&size=large,colourandsizeare parameter names andblueandlargeare their values. Web applications read these values to decide what to show or do. - A servlet is a piece of Java software running on a web server that handles requests for a particular address. You can think of it as a function behind a URL: you call the address, it runs some code, and it sends something back.
- An open redirect is when a site takes a destination from the URL and forwards the visitor there without checking that the destination is trustworthy. It matters because the link starts on a domain the victim trusts. A phishing link that begins with the company's own name looks far more convincing than one pointing at a random site.
- SSRF (Server-Side Request Forgery) is a different flaw: the server itself is tricked into fetching a URL you supply, so the request comes from inside the company's network. It is more serious than an open redirect because the server may be able to reach internal systems a visitor cannot. The key difference to hold on to: a redirect sends your browser somewhere; SSRF makes the server go and fetch something.
- XSS (Cross-Site Scripting) is when an attacker gets their own JavaScript to run in someone else's browser in the context of a website. JavaScript is the programming language browsers run; if an attacker can run theirs on a page you trust, they can act as you on that page.
- A VPS is a Virtual Private Server: a rented computer in a data centre that you control remotely. Researchers use one so that scanning tools run from a separate machine with a stable internet connection, rather than from their laptop.
- Responsible disclosure program (often just "program") is a company's official channel for receiving security reports, with rules about which of its systems you are allowed to test. That list of allowed systems is the scope. Here the scope was written as
*.target.com, where the*is a wildcard meaning "any subdomain of target.com".
Setting up
In July the researcher decided that August would be dedicated to recon. He rented a VPS and installed tools for three jobs: finding subdomains, finding content on those subdomains, and finding parameters. The tools named in the report are:
- subfinder, for subdomain enumeration (finding subdomains).
- amass, also for subdomain enumeration.
- httpx, for probing (checking which of the found hosts actually respond).
- nuclei, for template-based scanning (running a library of ready-made checks against hosts).
No versions are given. The only precondition stated is that the program's scope covered *.target.com.
Why two tools for the same job? Because each one collects subdomains from different sources, and combining their output gives a longer list than either alone. Why probe afterwards? Because a name in a list does not prove a live website is behind it; probing filters the list down to hosts that actually answer.
Finding it
The recon phase ran as follows:
- Enumerate subdomains with subfinder and amass, then combine the output of both tools.
- Probe the combined list with httpx and save the output to a text file.
- Run nuclei against that file with the vulnerabilities template set:
cat final.txt | nuclei -t path/to/nuclei-templates/vulnerabilities -o results.txt
Line by line:
cat final.txtprints the contents of the filefinal.txt, which holds the probed hosts.- The
|(pipe) takes that printed output and feeds it as input to the next command instead of showing it on screen. nucleiis the scanner being run.-t path/to/nuclei-templates/vulnerabilitiestells it which set of checks to use: the folder of templates that look for known vulnerabilities.-o results.txtwrites the findings into a file calledresults.txt.
Among the results was a subdomain flagged as vulnerable to a MicroStrategy SSRF. The URL reported was:
https://something.target.com/MicroStrategy/servlet/taskProc?taskId=shortURL&taskEnv=xml&taskContentType=xml&srcURL=
Reading that address in plain terms: the host is a subdomain of the target; the path /MicroStrategy/servlet/taskProc points at a servlet; and the query string passes four parameters. taskId=shortURL selects which task the servlet should perform, taskEnv=xml and taskContentType=xml describe the format of the task, and srcURL= is the source address, left empty here.
The researcher first tried an open redirect by setting srcURL to bing.com, and it did not redirect. Then an SSRF attempt was made, which also did not work, so the finding was initially treated as a false positive: a scanner alert that turns out not to be a real bug. This is a normal part of scanning; automated tools guess, and a human has to confirm.
A search for the word MicroStrategy revealed it to be a company providing cloud-based services. A further search for "Microstrategy vulnerability" led to a Medium blog post about an SSRF vulnerability that contained the exact same URL. Reading it explained the behaviour: the srcURL parameter only accepts tiny URLs, which is why the plain bing.com value did not redirect.
A tiny URL is a short link produced by a shortening service, which stores the long destination and gives you a compact address that forwards to it. The servlet only accepted a tiny URL rather than a bare hostname.

Exploitation
Step 1: Confirm the redirect with a tiny URL
A tiny URL was created for https://bing.com and placed in the srcURL parameter. The endpoint then redirected to bing.com, confirming the open redirect.
Why this step matters: the earlier failure was not proof that the bug was absent, only that the input format was wrong. Changing the format and seeing the redirect work turns a doubtful scanner alert into a confirmed finding.
Step 2: Rule out SSRF
An SSRF attempt was made, but there was no SSRF: the site redirected the user rather than fetching data from the external URL.
How to tell the two apart: if the server answers with a redirect instruction, your browser is the one that travels to the destination. If it were SSRF, the server would go and retrieve the content itself and hand it back to you. Here the browser travelled, so the flaw is an open redirect.
Step 3: Escalate to XSS
To increase impact, the researcher looked for a page hosting an XSS payload, obtained one, created a tiny URL for it, and pasted that tiny URL into the srcURL parameter. The XSS executed successfully.
Why bother? An open redirect on its own sends people to another site. Chaining it to a page that runs script was done to increase the impact of the finding.
The report does not include the exact tiny URLs, the XSS payload, or the HTTP responses.
Root cause
The taskProc servlet's shortURL task takes a user-supplied srcURL and issues a redirect to it. The observed behaviour was that the srcURL parameter only accepted tiny URLs; once a tiny URL was supplied, the endpoint redirected to its destination. Because the endpoint redirects rather than fetches, it is an open redirect rather than an SSRF, which is likely why the nuclei SSRF template produced a result that did not hold up as SSRF. The report does not describe any server-side allowlist or destination check beyond the tiny-URL requirement.
An allowlist is a list of things explicitly permitted; the opposite, a blocklist, names things forbidden. Checking against an allowlist is generally safer, because you only accept what you have named in advance.
Impact
An attacker can craft a link on the trusted target.com subdomain that redirects victims to an arbitrary destination. By pointing the redirect at a page hosting an XSS payload, the researcher showed that the XSS executed after following the redirect. The report does not state which origin the XSS executed in, nor any further consequences. The researcher submitted the report and, after 4 to 5 days, received a response thanking them for the report; the reward was inclusion in the company's security researcher Hall of Fame, with no bounty.
A Hall of Fame is a page where a company lists people who have reported valid issues, as a form of recognition. A bounty is a cash payment for a valid report; not every program offers one.
Fix
A reasonable fix would be to validate the resolved destination of srcURL against an allowlist and reject values that resolve outside it, rather than accepting any tiny URL.
Variants to test
These are the same techniques applied more generally, each with a way to tell whether it worked.
- Run nuclei's vulnerability templates over a combined subfinder and amass list, then manually verify each hit. A positive result is a flagged endpoint that still behaves as described after manual testing.
- Search for known product-specific endpoints (here, MicroStrategy
taskProc) on in-scope subdomains and read public research on them. A positive result is an endpoint whose parameters behave as the public research describes. - For redirect-style parameters, try a plain host first, then a shortened URL if the plain host is rejected. A positive result is the endpoint redirecting to the supplied destination. (A 3xx status code is the server's way of saying "look elsewhere"; the
Locationheader carries the address to go to.) - Check whether the redirect can be chained to a page hosting an XSS payload. A positive result is script execution after following the redirect.
- Distinguish redirect from fetch: if the server returns a redirect rather than the content of the external URL, the issue is an open redirect, not SSRF.
Glossary
- Recon: reconnaissance; gathering information about a target's systems before testing them.
- Domain: the main name of a website, such as
example.com. - Subdomain: a name placed before a domain, such as
shop.example.com, often a separate service. - URL: the full address of a resource, including any query string.
- Query string: the part of a URL after the
?, made of parameters. - Parameter: a name-and-value pair in a query string, such as
srcURL=. - Servlet: a Java program on a web server that handles requests for a particular address.
- Open redirect: a flaw where a site forwards visitors to a destination taken from the URL without checking it.
- SSRF: Server-Side Request Forgery; tricking the server into fetching a URL you supply.
- XSS: Cross-Site Scripting; getting attacker-supplied JavaScript to run in another user's browser.
- JavaScript: the programming language browsers execute to make pages interactive.
- VPS: Virtual Private Server; a rented machine in a data centre that you control remotely.
- Responsible disclosure program: a company's official channel and rules for receiving security reports.
- Scope: the list of systems a program allows you to test.
- Wildcard: the
*symbol, here meaning any subdomain of a domain. - Subdomain enumeration: finding as many subdomains of a target as possible.
- Probing: checking which hosts in a list actually respond.
- Template-based scanning: running a library of pre-written checks against hosts, as nuclei does.
- False positive: a scanner alert that turns out not to be a real issue.
- Tiny URL: a short link from a shortening service that forwards to a longer destination.
- Allowlist: a list of things explicitly permitted.
- Blocklist: a list of things explicitly forbidden.
- 3xx status code: an HTTP response telling the client to go to another address.
- Location header: the part of a redirect response that carries the destination address.
- Hall of Fame: a page listing researchers who reported valid issues, as recognition.
- Bounty: a cash reward paid for a valid security report.