Submit and Execute: Weaponizing Reflected XSS in Siemens Teamcenter's Login Redirect (CVE-2026-58113)
A reflected cross-site scripting flaw in Teamcenter's /auth/ login-redirect page let an attacker inject an event handler into an auto-submitting form, so the script ran as soon as a logged-in victim opened a crafted link. The researchers used this to silently add a second account as a surrogate delegate for the victim.
bishopfox.com
Published on bishopfox.com
Reflected XSS almost always begins the same way: the attacker gets a victim to open a crafted link. That step is unavoidable, and CVE-2026-58113 is no exception.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the /auth/ endpoint reflected arbitrary query parameter names and values into HTML form attributes without contextual output encoding, and the page's automatic form submission triggered the injected event handler.
Impact
An attacker could run script in a victim's authenticated Teamcenter session and silently add a surrogate delegate, potentially allowing that account to act on the victim's behalf in workflows; the researchers confirmed the delegation was created but did not exercise it against real data.
What the attacker needed
Victim is authenticated to Teamcenter; victim opens a crafted link; attacker needs no Teamcenter account
The fix
Siemens shipped fixed builds for the affected branches; the report also recommends strict contextual output encoding, rejecting or allowlisting unexpected parameters, and a restrictive CSP as defence in depth.
How it was found
- Craft a link to the /auth/ endpoint with an extra parameter whose value breaks out of the form action attribute and adds an onformdata handler.
- Send the link to an authenticated Teamcenter user.
- The victim opens the link; the redirect page loads and its onLoad handler calls updateURL().
- updateURL() calls submit() on the auto-submit form.
- The browser builds the form entry list, firing the formdata event, which runs the injected handler.
- The handler sends an authenticated request to the setSurrogate API, adding the attacker's account as a delegate.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes text from a link and puts it into its own page without cleaning it, so an attacker can sneak in code that the victim's browser runs. Here the login redirect page built a form from the link's parameters and submitted it automatically, which made the sneaked-in code run without any extra click. Because the code ran inside the victim's logged-in Teamcenter session, it could make changes as that user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.