ericpaulbishop / gargoyle

Gargoyle Router Management Utility
http://www.gargoyle-router.com
468 stars 221 forks source link

Fix password validation and revelation. #849

Closed n3vu0r closed 4 years ago

n3vu0r commented 4 years ago

The Wi-Fi password field is used for both encryption methods PSK(2) and WPA(2) RADIUS. Currently only its length is checked (8 <= len <= 999). This is fine for RADIUS but not for PSK. Using a 64-character password with non-hex characters will cause hostapd to fail and the webpage to hang.

Also a reveal checkbox can be inverted by checking it and then reloading the page. Due to browser's auto-completion, the checkbox will be checked again but the togglePass function is not aware of this, inverting the behavior of the checkbox.

Changes:

lantis1008 commented 4 years ago

Thanks