Skip to content
XSS Disclosed report Beginner CVE-2023-37280

Pimcore admin UI vulnerable to Cross-site Scripting in 2 factor authentication setup page

The Pimcore admin login page for two-factor authentication setup reflects an error parameter without proper encoding, allowing an unauthenticated attacker to inject HTML or scripts. This could let them steal cookies, deface the page, or replace the QR code to trick an admin.

pimcore/admin-ui-classic-bundle

Originally disclosed on huntr

Summary

Unauthenticated HTML Injection / XSS Possible. Conditions: 2factor authentication must not set before

Vulnerable Endpoint: /admin/login/2fa-setup

Vulnerable Param: error= How it works, So basically any admin, who has not setup 2 factor authentication before is vulnerable for this attack, without need for any form of privilege, causing the application to execute arbitrary scripts / HTML Contents.

Another potential attack vector, as it's a 2fa page and it has QR Code, attacker can replace this QR Code with something he has, leading to increase threat to the admin.

This attack can be used to execute arbitrary scripts or HTML Injection, causing the target application to execute these resulting in cookie steeling, defacement or Injecting phishing URLs on the target application.

Patches

Update to version 1.0.3 or apply this patches manually https://github.com/pimcore/admin-ui-classic-bundle/commit/5fcd19bdc89a3fe4cb8ad8c356590e1e4740c743.patch

Workarounds

Apply patches manually: https://github.com/pimcore/admin-ui-classic-bundle/commit/5fcd19bdc89a3fe4cb8ad8c356590e1e4740c743.patch

References

https://huntr.dev/bounties/1fa1cc3b-75ff-4d34-99ae-4a705eb623e7/

From the GitHub Advisory Database (GHSA-hqv9-6jqw-9g8m, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the error parameter is reflected into the page without output encoding or sanitisation.

Impact

An attacker could execute arbitrary scripts or HTML in the admin's browser, leading to cookie theft, defacement, or phishing, and could replace the QR code to increase the threat to the admin.

What the attacker needed

Admin has not set up 2FA; victim clicks a crafted link

The fix

It was fixed by updating to version 1.0.3 or applying the provided patch manually.

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 report has not been written yet. The Original tab links to the source.

When a web page puts user-supplied text into its HTML without cleaning it first, an attacker can slip in their own code. Here, the login page for setting up two-factor authentication takes an 'error' value from the URL and shows it directly, so a crafted link can run malicious script in the admin's browser. Two-factor authentication is an extra login step, and this page is only reachable before that step is configured.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from pimcore/admin-ui-classic-bundle

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.