Site icon API Security Blog

Login with Cognito < 1.4.9 – Admin+ Stored XSS

The plugin does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup).

### PoC

1. Go to “Cognito Login » Configure OAuth”, and add an application. 2. Then go to “Cognito Login » Attribute/Role Mapping” and in the Username add the payload: xss'”>”‘ 3. Click “Save settings” to check the XSS popup.Read More

Exit mobile version