How I was able to get private ticket response panel and FortiGate web panel via blind XSS
A blind XSS payload submitted in a support form executed in an internal ticket panel, and the notification also revealed an IP address leading to a FortiGate firewall login page that was accessible with default admin credentials. The attacker could view private ticket responses and fully control the firewall admin panel.
Published on web.archive.org
In this blog post I’m gonna share my recent finding . So ,first I introduce myself , who don’t know about me I’m Bijan Murmu a noob bug bounty hunter from India .
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 from Bijan Murmu (@0xBijan), a self-described bug bounty hunter from India. The target was an e-commerce site belonging to a private company whose name could not be disclosed, so the author refers to it throughout as seller.redacted.com. The feature in question is the login page's support flow: when a login attempt fails, the page offers an "Unable to Login?" option that opens a form where a user can submit information, including a description field. That description field is what the author abused.
The weakness is blind XSS: the payload does not execute in the attacker's own browser session, but later, in a different application and a different user's session, when the submitted content is viewed by staff. The author used XSSHunter to catch the callback.
Setup
The only tool named in the report is Burp Suite Community Edition, used for spidering and testing the target. Blind XSS tests were run through XSSHunter, which hosts the payload and reports back when it fires, including the URL where execution happened.
No accounts, roles or versions are described. The precondition for the attack is simply that the support form accepts free text in a description field and that this text is later rendered somewhere in an internal application used by staff.
Finding it
After spidering the site, the author had found almost nothing and was close to giving up on it. On a last pass focused on XSS, one behaviour stood out: entering wrong credentials on the login page made an option appear that said "Unable to Login?".
Clicking that option opened a pop-up form with several fields for submitting information. The author filled in all the fields and placed a blind XSS payload in the description field, then submitted the form.
Exploitation
Step 1: Submit the payload through the support form
The payload itself is not reproduced in the report; the author only states that a blind XSS payload was placed in the description field of the "Unable to Login?" form and submitted. The form is offered from the login page after a failed login attempt.
Step 2: Receive the XSSHunter callback
About an hour later, a notification arrived by email stating that the payload had fired at:
something.private.redacted.com/#app/secondLevelLead/my/incident/[ticket]/ticketjourny
The URL shows the payload executing inside a separate internal application, on a route that looks like an incident and ticket journey view. The [ticket] segment is a placeholder in the report, not a literal value. This is the essence of blind XSS: the attacker never sees the vulnerable page, only the callback.
Step 3: Assess the internal panel
When the author tried to open the reported URL directly, it was not accessible. The report says the application is some kind of internal infrastructure reachable only by internal staff, or requiring some type of VPN. The panel looks like this:
So the XSS fired in a context the author could not browse to directly. The value of the finding therefore depends on who views the submitted ticket content, and on what the payload can do in their session.
Step 4: Pivot to the FortiGate panel
The notification also contained an IP address, which the author says redirected to a FortiGate web panel with a login page. The report quotes Fortinet's description of the product:
FortiGate next-generation firewalls utilise purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance including encrypted traffic. FortiGate reduces complexity with automated visibility into applications, users and network and provides security ratings to adopt security best practices.
Step 5: Log in with default credentials
On the FortiGate login page the author tried the default credentials admin/admin and was logged in to the dashboard.
According to the report, after this login every function was accessible and changeable. The author describes the result as having "pwned" the admin panel. The report does not show the login request or the dashboard contents, and it does not say whether the FortiGate panel was reached through the XSS session or independently; the IP address came from the XSSHunter notification.
Root cause
The report does not analyse the server-side code. What it establishes is that text submitted through the support form was later rendered in an internal application, where the payload fired. That is the classic stored blind XSS condition: input accepted in one trust zone, output rendered in a more privileged one.
Separately, the FortiGate management interface was reachable and accepted the default admin/admin credentials. Why the panel was exposed to the author at all, and whether the XSS played any role in reaching it, is not explained in the report.
Impact
The direct impact is that script submitted through the public support form ran inside an internal application that the author could not otherwise reach. What that script could read or do in the staff session is not documented; the report only shows that it fired. The FortiGate panel, once logged in with default credentials, gave access to every function the report says was accessible and changeable, which is administrative control of the firewall. The report does not state which network the firewall protected or how many users were affected.
Fix
Based on the two findings, the fixes would be output encoding of the description field wherever it is rendered in the internal ticketing application, and changing the FortiGate default credentials together with restricting management access to trusted networks. Which of these, if any, the company applied is not stated.
Variants to test
- Other public forms that feed internal tools. Submit a blind XSS payload in contact, support, complaint, refund or "unable to login" forms. A positive result is an XSSHunter callback from a host you cannot reach directly, especially one on an internal-looking hostname or VPN-only range.
- Fields beyond the description. Try name, subject, company and any free-text field, since internal tools often render several fields in a ticket view. A callback from a different route than the one you expected shows which field is rendered where.
- Default credentials on management interfaces. When a callback or error page reveals an appliance or admin panel, try vendor defaults such as admin/admin. A positive result is a dashboard rather than a login error.
- Ticket and incident views. If the callback URL contains a route for viewing a ticket, check whether the payload fires for different staff roles or on list views as well as detail views, which tells you how widely the stored content is rendered.
Timeline
| Date | Event |
|---|---|
| May 29, 2019 | Report submitted to the company via HackerOne |
| May 29, 2019 | Response from HackerOne staff |
| May 30, 2019 | Triage by team member |
| June 3, 2019 | Rewarded $1,250 |
What happened, in plain words
A security researcher found a way to make a company's own staff run his code inside a private internal system, without ever logging in to that system himself. He did it by typing a special piece of text into a support form on an e-commerce website. About an hour later, an email told him the text had run, inside a private panel he could not open himself. The same alert also mentioned an address that led him to a firewall's management page, where the username and password were still the factory defaults, admin/admin. He logged in and could change everything.
This is a beginner's walkthrough of that story. Every step is explained from zero, including the tools and the words. The only code shown is the code from the report itself.
The people and the target
The author is Bijan Murmu (@0xBijan), who describes himself as a beginner bug bounty hunter from India. A bug bounty is a programme where a company pays people to find security problems in its systems and report them privately instead of exploiting them. This was his first public write-up.
The target was an e-commerce site, meaning an online shop. It belonged to a private company, so the name could not be published. Throughout the report the site is called seller.redacted.com. The word redacted is a placeholder: the real name was removed on purpose. When you see redacted anywhere in this article, read it as "the real name, hidden".
The part of the site that mattered was the login page and, more precisely, what happens when a login fails.
The weakness: blind XSS
XSS stands for cross-site scripting. It means getting a website to treat text you typed as if it were part of the website's own instructions to the browser. A browser runs instructions written in a language called JavaScript. If a site takes your text and puts it into a page without cleaning it, your text can become JavaScript, and the browser runs it. The person who wrote the text is then effectively running code inside someone else's browser session.
Blind XSS is a variant where you never see the result yourself. You submit text on one site, and the text is stored. Later, a different person, often an employee, opens a page in a different internal system where your text is displayed. That is when your code runs, in their browser, with their access. You find out because your code is built to send a message back to a server you control. Think of it like a letter that only explodes when the recipient opens it, in a building you are not allowed to enter.
XSSHunter is a service that does the "send a message back" part for you. You put a special payload (the text that becomes code) generated by XSSHunter into a form. XSSHunter waits. When the payload runs anywhere, it reports back by email with details, including the address of the page where it ran. A payload here simply means the piece of text you submit, crafted so that it turns into code when displayed.
The tool used for testing
The report names one testing tool: Burp Suite Community Edition. Burp is a program that sits between your browser and a website so you can watch and change the traffic. The free Community Edition is enough for the work described here. The author used it for spidering, which means automatically crawling the site, following links and collecting every page and form it can find, so you have a map of what exists. He also recommends it to other hunters.
No accounts, user roles or software versions are described in the report. The only precondition for the attack is that the support form accepts free text in a description field, and that this text is later shown somewhere in an internal application used by staff.
Finding it
After crawling the site, the author had found almost nothing and was close to giving up. On a final pass focused on XSS, one behaviour stood out: if you typed the wrong username or password on the login page, an option appeared that said "Unable to Login?".
Why does this matter? A failed login is a dead end for a normal user, but the extra option is a new door. It exists to help people who cannot get in, which means it must accept input from people who are not logged in. Any feature that accepts input from strangers and passes it to staff is worth testing.
Clicking that option opened a pop-up form with several fields for submitting information. The author filled in all the fields and put a blind XSS payload in the description field, then submitted the form.
A form is the collection of boxes and a submit button on a web page. Whatever you type is sent to the server when you press submit. The description field is the large free-text box, the one place where you can write anything you like. Free-text boxes are the classic place to try XSS, because the site cannot easily predict what you will type.
Exploitation
Step 1: Submit the payload through the support form
The exact payload is not reproduced in the report. The author only says that a blind XSS payload was placed in the description field of the "Unable to Login?" form and submitted. The form is offered from the login page itself after a failed attempt.
Why submit through this form rather than somewhere else? Because the text goes to staff. Staff read support requests in internal tools. If those tools display the text without cleaning it, the payload can run in the browser of whoever opens it. That is the whole trick: you use a public door to deliver code to a private room.
Step 2: Receive the XSSHunter callback
About an hour later, an email arrived saying the payload had fired at:
something.private.redacted.com/#app/secondLevelLead/my/incident/[ticket]/ticketjourny
Line by line, in plain words:
something.private.redacted.comis the address of the internal application where the payload ran. Theprivatepart andredactedshow it is not the public shop site; it is a separate internal system./#app/...is the part after the#. In a browser, everything after#is handled by the page itself rather than sent to the server. Here it describes which screen inside the application was open.secondLevelLead/my/incident/[ticket]/ticketjournyis the route, meaning the path through the application's screens. The words suggest an incident and a ticket journey view, which fits a support ticket system.[ticket]is a placeholder in the report, not a real value. It stands for whatever ticket number was involved.
This is the heart of blind XSS: the attacker never sees the vulnerable page. He only sees the report that his code ran there. The report tells him the address, but not what the page looked like or who was using it.
Step 3: Assess the internal panel
When the author tried to open the reported address directly in his own browser, it did not load. The report says the application is some kind of internal infrastructure, reachable only by internal staff, or requiring some type of VPN. A VPN is a private tunnel into a company's network: without it, your computer is simply outside and cannot reach internal addresses. The panel looks like this:
So the payload ran in a place the author could not browse to himself. That is why the finding matters: the code ran with the access of whoever opened the ticket, not with the author's access. What the payload could read or do in that person's session is not documented in the report; it only shows that it fired.
Step 4: Pivot to the FortiGate panel
The notification also contained an IP address. An IP address is the numeric address of a machine on a network, like a street address for computers. The author says this address redirected him to a FortiGate web panel with a login page.
FortiGate is a family of firewall appliances made by Fortinet. A firewall is a device that sits between networks and decides which traffic is allowed through, like a security guard at a door checking who comes in and out. A web panel is the management screen you open in a browser to configure the device. The report quotes Fortinet's own description of the product:
FortiGate next-generation firewalls utilise purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance including encrypted traffic. FortiGate reduces complexity with automated visibility into applications, users and network and provides security ratings to adopt security best practices.
In short: it is a serious piece of network security equipment, and its management page is the control room for it.
Step 5: Log in with default credentials
On the FortiGate login page the author tried the default credentials admin/admin and was logged in to the dashboard.
Default credentials are the username and password a device ships with from the factory. They are meant to be changed during setup. Many devices keep them if nobody bothers. Trying them is not clever hacking; it is the first thing anyone checks, and it works far more often than it should.
According to the report, after this login every function was accessible and changeable. The author describes the result as having "pwned" the admin panel. "Pwned" is informal internet slang for "taken over".
The report does not show the login request or the dashboard contents. It also does not say whether the FortiGate panel was reached through the XSS session or independently; the IP address came from the XSSHunter notification.
Root cause
The report does not analyse the server-side code, so we can only describe what it establishes.
- The XSS. Text typed into the support form was displayed in an internal application, where the payload fired. Output encoding means converting special characters into harmless versions before putting them on a page, so that text stays text and never becomes code. Script supplied through the form ran in the internal application. This is the classic stored blind XSS condition: input is accepted in one trust zone (the public internet) and displayed in a more privileged one (the internal network).
- The default password. This is independent of the XSS. The FortiGate management interface was reachable and still accepted
admin/admin. Why the panel was exposed to the author at all, and whether the XSS played any role in reaching it, is not explained in the report.
Impact
The direct impact is that script submitted through the support form ran inside an application the author could not otherwise reach. A session is the state of being logged in: the browser holds a small piece of data, often called a cookie or token, that proves who you are on each request. If someone else's code runs in your session, it can act as you. What that script could read or do in the staff session is not documented; the report only shows that it fired.
The FortiGate panel, once logged in with default credentials, gave access to every function the report says was accessible and changeable, which is administrative control of the firewall. The report does not state which network the firewall protected or how many users were affected.
Fix
Based on the two findings, the fixes would be:
- Output encoding of the description field wherever it is displayed in the internal ticketing application, so submitted text can never become code.
- Changing the FortiGate default credentials, and restricting management access to trusted networks so the login page is not reachable from wherever the author was.
Which of these, if any, the company applied is not stated.
Variants to test
These are ideas to try, written for someone starting out.
- Other public forms that feed internal tools. Put a blind XSS payload in contact, support, complaint, refund or "unable to login" forms. A positive result is an XSSHunter callback from a host you cannot reach directly, especially one on an internal-looking hostname or a VPN-only range.
- Fields beyond the description. Try name, subject, company and any free-text field, since internal tools often display several fields in a ticket view. A callback from a different route than the one you expected shows which field is displayed where.
- Default credentials on management interfaces. When a callback or error page reveals an appliance or admin panel, try vendor defaults such as admin/admin. A positive result is a dashboard rather than a login error.
- Ticket and incident views. If the callback URL contains a route for viewing a ticket, check whether the payload fires for different staff roles or on list views as well as detail views. That tells you how widely the stored content is displayed.
Timeline
| Date | Event |
|---|---|
| May 29, 2019 | Report submitted to the company via HackerOne |
| May 29, 2019 | Response from HackerOne staff |
| May 30, 2019 | Triage by team member |
| June 3, 2019 | Rewarded $1,250 |
HackerOne is a platform where companies run their bug bounty programmes and receive reports. Triage is the first check by the company's team: confirming the report is real and deciding how serious it is. The reward was 1,250 US dollars.
Glossary
- Bug bounty: a programme where a company pays people to find and privately report security problems in its systems.
- XSS (cross-site scripting): making a website treat text you typed as code, so the browser runs it.
- Blind XSS: XSS where your code runs later, in someone else's browser and a system you cannot see, and reports back to you.
- Payload: the piece of text you submit, crafted so it turns into code when displayed.
- XSSHunter: a service that hosts a blind XSS payload and emails you when and where it fires.
- Burp Suite Community Edition: a free tool that sits between your browser and a website so you can watch and change the traffic.
- Spidering: automatically crawling a site to collect its pages and forms.
- Form: the boxes and submit button on a page; what you type is sent to the server on submit.
- Description field: a free-text box where you can write anything, a common place to try XSS.
- Unauthenticated: not logged in.
- VPN: a private tunnel into a company's network; without it you cannot reach internal addresses.
- IP address: the numeric address of a machine on a network.
- Firewall: a device that decides which network traffic is allowed through.
- FortiGate: a family of firewall appliances made by Fortinet, managed through a web panel.
- Web panel: a management screen you open in a browser to configure a device.
- Default credentials: the factory username and password a device ships with, meant to be changed during setup.
- Pwned: informal slang for "taken over".
- Output encoding: converting special characters into harmless versions before showing text on a page, so text stays text.
- Session: the state of being logged in, proven on each request by a small piece of data such as a cookie or token.
- Cookie / token: a small piece of data the browser holds and sends with requests to prove who you are.
- HackerOne: a platform where companies run bug bounty programmes and receive reports.
- Triage: the company's first check of a report, confirming it is real and judging its severity.
- Redacted: a placeholder showing that a real name or value was removed on purpose.