Description
I was looking at the code done for ACCUMULO-3221 and noticed that we're using the system clock instead of the JDK's internal relative time, System.nanoTime(). This is a problem, because any auth timeout that depends on the system clock can be easily bypassed by changing the system time.
We can also do the time conversion more reliably with TimeUnit to avoid the potential arithmetic bug identified in ACCUMULO-3221.
Attachments
Attachments
Issue Links
- breaks
-
ACCUMULO-3229 Shell displays authTimeout poorly
- Resolved
- supercedes
-
ACCUMULO-3221 Unintential integer overflow in Shell authorization timeout
- Resolved