Sugar-Emulator has no access control
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Sugar |
Unknown
|
Unknown
|
||
| sugar (Ubuntu) |
Critical
|
Unassigned |
Bug Description
Binary package hint: sugar
Sugar-Emulator uses the '-ac' flag in the Xephyr command line, with turns off access control.
This means that anyone on the network can attach to the display/
With Xephyr on display :1
--
simon@destiny:~$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN
tcp6 0 0 :::6001 :::* LISTEN
--
Simon.
mungewell (simon-mungewell) wrote : | #1 |
mungewell (simon-mungewell) wrote : | #2 |
Morgan Collett (morgan) wrote : | #3 |
Reported upstream - I'll get your patch reviewed
Changed in sugar: | |
status: | Unknown → New |
mungewell (simon-mungewell) wrote : | #4 |
Slight problem with patch, 1 in 16 chance that xauth will fail as leading 0 is dropped, new to python so don't know how to fix this....
--
DEBUG:sugar-
xauth: (argv):1: key contains odd number of or non-hex characters
--
Simon.
Changed in sugar: | |
assignee: | nobody → lfaraone |
status: | New → In Progress |
Changed in sugar: | |
importance: | Undecided → Low |
status: | In Progress → Triaged |
mungewell (simon-mungewell) wrote : | #5 |
Slightly better way of fixing leading zeros...
change
cmd2.append('%s' % hex(random.
for
cmd2.append('%032X' % random.
Simon.
Changed in sugar: | |
status: | New → Confirmed |
Luke Faraone (lfaraone) wrote : | #6 |
Upstream has deferred to 0.86, so it'll be in Jaunty+1
Changed in sugar: | |
assignee: | lfaraone → nobody |
David Farning (dfarning) wrote : | #7 |
This has been fixed as of the most recent release of sugar .88 on 10.4
Changed in sugar: | |
importance: | Unknown → Critical |
status: | Confirmed → Fix Released |
Changed in sugar: | |
importance: | Critical → Unknown |
status: | Fix Released → Confirmed |
Brian Murray (brian-murray) wrote : | #8 |
I imagine it was meant for the Ubuntu status and importance to be set to Fix Released and Critical - not the upstream task which was unset by the bug watch updater.
Changed in sugar (Ubuntu): | |
status: | Triaged → Fix Released |
importance: | Low → Critical |
Changed in sugar: | |
status: | Confirmed → Unknown |
A quick fix for this would be to use the Xauth file of the running/calling user.
The emulator.py should call 'xauth add <$display> . <random 128bit/32hex char>', and then Xephyr can be called without the '-ac' flag.
The Xephyr server still listens on the TCP/IP ports, but does not allow others to connect unless they have imported the same key to their Xauth file.
Simon.