Review Request 126220: [server] Minimum supported idle timeout is 5 sec

Martin Gräßlin mgraesslin at kde.org
Tue Dec 8 13:15:48 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126220/
-----------------------------------------------------------

(Updated Dec. 8, 2015, 1:15 p.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma and Sebastian Kügler.


Changes
-------

Submitted with commit 7a34e3bece2796bd7873c7ec954f48f1e09a0d46 by Martin Gräßlin to branch master.


Repository: kwayland


Description
-------

A system isn't idle by definition below 5 sec. Before it's not possible
to properly determine whether the user is still interacting with the
system or not. Thus such a short timeout is not sufficient to determine
whether the system is idle.

Furthermore allowing short timeouts like 1 msec can be used to gather
information from the system. It would allow to reconstruct the timestamp
changes on the seat very reliable, which we do not want a Client to know.

And also this can be used to get events on each key press and key release
and the time between each of the events. This can be used to gather
statistics which would in worst case allow to reconstruct what the user
is typing. Determining where a word starts and ends should be relatively
straight forward if you know the timing. With the length of the word and
the statistics of alphabetic distribution it becomes possible to
reconstruct some words. And also individual letters. With enough
statistic and some known words one can determine how long it takes to
press a certain letter. At that point the idle interface would be a
keylogger.

To prevent such attacks the timestamp is now modified to be at least
5 sec. Why 5 sec? Because it's the smallest timestamp used in the
KIdleTime example application which I do not want to break.
5 sec are long enough to destroy this possible attack.


Diffs
-----

  src/server/idle_interface.cpp 90d7324ac415a2293e4e508605e0fb4aafdf1b82 

Diff: https://git.reviewboard.kde.org/r/126220/diff/


Testing
-------


Thanks,

Martin Gräßlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151208/3f951cdc/attachment.html>


More information about the Plasma-devel mailing list