Lucene search

K
huntrHenrycrain52534DEF-ACAB-4200-A79A-89EF4CE6A0B0
HistoryMar 17, 2023 - 7:34 p.m.

Stored XSS in Admin Panel

2023-03-1719:34:17
henrycrain
www.huntr.dev
15
stored xss
admin panel
unsanitized input
html injection
openemr
security vulnerability

EPSS

0.013

Percentile

86.2%

Description

The admin panel (admin.php) does not properly sanitize the text in the “Site Name” field, allowing a user with admin access to inject arbitrary HTML.

This is in a similar vein to CVE-2022-4733 but still exists as of version 7.0.1-dev.

Proof of Concept

  1. Log in as a user with admin permissions
  2. Navigate to Admin->Config at the top
  3. Go to the “Branding” tab on the side
  4. In the “Application Title” field, enter:
<script>alert(document.cookie);</script>
  1. Click “Save”
  2. Go to <OpenEMR domain>/admin.php
  3. An alert will be shown

EPSS

0.013

Percentile

86.2%

Related for 52534DEF-ACAB-4200-A79A-89EF4CE6A0B0