Reflected cross-site scripting vulnerability in Crealogix EBICS implementation
The EBICS server reflected the unsanitised EBICS version from the request into an HTML error page, allowing an attacker to execute JavaScript in the victim's browser. An attacker could craft a link that, when clicked, runs arbitrary script in the context of the EBICS server's origin.
Published on pentagrid.ch
During a penetration test of an Electronic Banking Internet Communication Standard (EBICS) environment, Pentagrid observed a vulnerability in the EBICS banking implementation developed by CREALOGIX AG and used by many banks. EBICS is a common standard in Germany, France and Switzerland for sending payment information…
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 server echoed the user-supplied EBICS version into an HTML error response without context-appropriate escaping.
Impact
The impact is unknown and depends on deployment details; it is assumed to be low to medium in common scenarios, but could be higher if the EBICS domain is shared with other web applications or if EBICS clients can be exploited via IPC mechanisms.
What the attacker needed
Victim clicks a crafted link; EBICS server accessible to victim
The fix
The issue was fixed in version 7.1; the recommended fix is to change the Content-Type to text/plain, avoid detailed error messages, and apply context-appropriate escaping.
How it was found
- Send a POST request to the EBICS server endpoint with an invalid EBICS version containing an XSS payload.
- Observe that the server returns an HTML error page containing the unsanitised payload.
- Host a malicious HTML page that uses history.pushState to place the payload in the URL.
- When a victim visits the malicious page, the script in the fragment executes in the EBICS server's origin.
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.
The EBICS server took a value from the request (the version) and put it directly into an error page without cleaning it. Because the page was served as HTML, a malicious value could include a script that runs in the victim's browser when they visit a crafted link. This is called reflected cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.