WordPress Plugin Vulnerabilities

Login with Cognito < 1.4.9 - Admin+ Stored XSS

Description

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).

Proof of Concept

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'"><script>alert(/XSS/);</script>"'

3. Click "Save settings" to check the XSS popup.

Affects Plugins

Fixed in 1.4.9

References

Classification

Type
XSS
CWE
CVSS

Miscellaneous

Original Researcher
iohex
Submitter
iohex
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2022-12-07 (about 1 years ago)
Added
2022-12-07 (about 1 years ago)
Last Updated
2022-12-14 (about 1 years ago)

Other