Common stuff for all my devices' web server pages: css, login, log, ipv4, ipv6, firmware update, clock, reset info etc.
Dependents: oldheating gps motorhome heating
Security
A password has to be set whenever there has been a software reset. Resets following faults or power on do not require a new password as the hash is restored from the RTC GPREG register.
The password is not saved on the device; instead a 32 bit hash of the password is saved. It would take 2^31 attempts to brute force the password: this could be done in under a month if an attempt were possible every millisecond. To prevent this a 200 ms delay is introduced in the reply to the login form, that gives a more reasonable 13 years to brute force the password.
Once the password is accepted a random session id is created. This is 36 bit to give six base 64 characters but without an extra delay. If an attempt could be made every ms then this would still take over a year to brute force.
The most likely attack would to use a dictionary with, say, 10 million entries against the password which would still take 20 days to do.
History
CSS modified to not change the text colour when hovering over a disabled button: it still does for buttons which are enabled.
2021-05-11, by andrewboyson [Tue, 11 May 2021 11:00:00 +0000] rev 160
CSS modified to not change the text colour when hovering over a disabled button: it still does for buttons which are enabled.
Added HttpAddTextN to allow a length limited addition.; Updated HttpQueryValueAsInt and HttpQueryUnencode to mot fail if passed a NUL.
2021-04-24, by andrewboyson [Sat, 24 Apr 2021 09:51:26 +0000] rev 159
Added HttpAddTextN to allow a length limited addition.; Updated HttpQueryValueAsInt and HttpQueryUnencode to mot fail if passed a NUL.
Modified firmware module to disable the restart button until the file upload had completed successfully.
2021-02-01, by andrewboyson [Mon, 01 Feb 2021 19:33:21 +0000] rev 158
Modified firmware module to disable the restart button until the file upload had completed successfully.
Updated firmware page to align bytes sent.
2021-02-01, by andrewboyson [Mon, 01 Feb 2021 13:24:09 +0000] rev 157
Updated firmware page to align bytes sent.
Changed firmware to distinguish between the upload and the file save on the device.; Changed ajax to give a quick update a second after a name value has been sent to give a chance for the device to have reacted.
2021-01-24, by andrewboyson [Sun, 24 Jan 2021 18:54:27 +0000] rev 156
Changed firmware to distinguish between the upload and the file save on the device.; Changed ajax to give a quick update a second after a name value has been sent to give a chance for the device to have reacted.
Modified to allow name resolution testing over IPv6 and IPv4 with DNS, MDNS or LLMNR.
2021-01-24, by andrewboyson [Sun, 24 Jan 2021 15:06:33 +0000] rev 155
Modified to allow name resolution testing over IPv6 and IPv4 with DNS, MDNS or LLMNR.
Sent dns tests to DnsTest module
2021-01-21, by andrewboyson [Thu, 21 Jan 2021 14:55:08 +0000] rev 154
Sent dns tests to DnsTest module
Added button to test resolution of a name from an address.
2021-01-21, by andrewboyson [Thu, 21 Jan 2021 13:33:44 +0000] rev 153
Added button to test resolution of a name from an address.
Tidied up the Trace Nr6 and Nr4 to be just the NR cache
2021-01-19, by andrewboyson [Tue, 19 Jan 2021 18:59:06 +0000] rev 152
Tidied up the Trace Nr6 and Nr4 to be just the NR cache
Updated in line with net changes
2021-01-18, by andrewboyson [Mon, 18 Jan 2021 18:25:24 +0000] rev 151
Updated in line with net changes