DaveGut / HubitatActive

Hubitat Environment Developments
64 stars 87 forks source link

KasaDevices: Password with special characters fails authentication #29

Closed TonyFleisher closed 1 year ago

TonyFleisher commented 1 year ago

When entering a password that contains the less-than character "<", the hubitat client libraries escapes the html entity and stores it as "&lt;"

For example, if you enter a password as: "123<>abc"

Request URL: http://HUB_IP/installedapp/update/json Request Method: POST

Payload sent by Browser to the Hub: settings[userPassword]: 123&lt;>123

As a result, the settings is stored with the html entity which then needs to be unescaped when sending to the cloud to login.

DaveGut commented 1 year ago

Fixed on version 6.7.2 update.