heiglandreas / authLdap

LDAP-Authentication for WordPress
http://andreas.heigl.org/cat/dev/wp/authldap/
MIT License
69 stars 37 forks source link

Escape Form-values #252

Closed heiglandreas closed 6 months ago

heiglandreas commented 6 months ago

This should eliminate the risk of injecting JS into form field values.

Adding backslashes or quotes in any of the fields will result in a backslash-escaped value. SHould these values be stored more than once the amount of backslashes will exponentially grow. This is a sideeffect of these values not being expected in the fields in the first place.

This should also fix CVE-2023-41655 as now injecting JS will no longer result in that being executed in the UI.

For more discussion around this CVE see https://github.com/heiglandreas/authLdap/issues/237