Clocks go back this weekend
This weekend the clocks change as we revert from British Summer Time (BST) to Greenwich Mean Time (GMT) at 02:00 BST on Sunday 25 October 2009 and the clocks go back, giving an extra hour.
What does this mean for web site security? Does running 01:00 to 02:00 twice matter? Well some brave web application owners will be disabling their systems like this online bank:
And, I don't think it's just being done as a finale to the current Energy Saving Week. Most people, quite rightly, won't be taking this rather severe step. Another millennium bug anyone? The date/time should be considered rather like other untrusted user input. Most problems will probably fall into the "business logic" category such as:
- Failure of time-based logic where dates are being compared.
- Assumptions of uniqueness in time-stamped output (e.g. by a single-threaded process).
- Running tasks again leading to possible:
- loss of data due to overwriting
- duplication of exports or emails
- creation of inaccuracies in management information.
- Chronological ordering anomalies leading to other faults.
It's not just banks and other financial organisations that may have difficulties.
The time change may expose some other vulnerabilities that only exist at changeover time and/or during the next overlap hour.
- Circumvention of brute force attacks on user authentication mechanisms.
- Increased risk due to extension of a session's validity where local time is recorded.
- Failure in data validation routines for time-related comparisons.
- Incubated vulnerabilities where a time-related aspect causes the attack to be possible.
- Denial of service due to extension of account lock-out.
- Using time as a loop counter.
- Additional errors caused by any of the above leading to information leakage.
Recording the offset of local time to GMT/UTC and synchronisation should certainly be done, but may not resolve the time overlap issues. The effects on long-running "saga" requests might be especially difficult to determine. Time dependencies need to be specified and considered through the development lifecycle. Perhaps the bank is right after all?
Posted on: 23 October 2009 at 08:41 hrs
