News for hackers. Stuff that matters.
Re:Google Hangouts adds remote desktop support by ISL on Wednesday June 26, 2013 @01:53PM (#5947665)
Can anyone comment on how a browser plugin gets access to the desktop? (even if hangouts doesn't do it, there's a remote desktop plugin)

I'm a curmudgeon, but it seems like it's like designing a washing machine attachment that serves as a home security system and pasta maker.

Are there OS or X11 permissions that can restrict userland apps from deviating far from their original use case?

Re:Google Hangouts adds remote desktop support by dman on Wednesday June 26, 2013 @02:12PM (#5947823)
The browser is a native app and can use native apis to access screensharing desktop apis. It can then proxy these via some browser plugin api making those available to browser plugins.
Re:Google Hangouts adds remote desktop support by zanny on Wednesday June 26, 2013 @02:13PM (#5947834)
Not X11, any app can see or manipulate any other apps screen buffer. It is one reason Wayland is nice.

If your system has MAC you can restrict its file access, but in general you have library support for this stuff built in.

It is also why in most cases it is a PITA to stream 3d rendered screens. Opengl / directX don't provide easy ways like X11 to look at a completed framebuffer and store / broadcast it.

Re:Google Hangouts adds remote desktop support by dman on Wednesday June 26, 2013 @02:36PM (#5948046)
In OpenGL this is fairly easy using FBO's - http://www.songho.ca/opengl/gl_fbo.html . I have never used DirectX but I would be surprised if it did not allow you to read the framebuffer.
Re:Google Hangouts adds remote desktop support by Zergy on Wednesday June 26, 2013 @04:32PM (#5948811)
It does. That is how a lot of bots and other cheats are made.
Re:Google Hangouts adds remote desktop support by ajross on Wednesday June 26, 2013 @03:01PM (#5948211)
Wayland doesn't provide meaningful security for that case. It's true that there's no protocol support for arbitrary buffer access, but if you're running as the same user (as is the case here) it's comparatively trivial to dup the drm file descriptor and remap the buffers. You may need to be able to guess (or just probe for) the handles though, I'm not sure.
Re:Google Hangouts adds remote desktop support by 15charusername on Wednesday June 26, 2013 @07:40PM (#5949833)
Wayland alone might not, but MAC can limit access to file descriptors
Re:Google Hangouts adds remote desktop support by Achshar on Wednesday June 26, 2013 @02:12PM (#5947828)
Actually there is a pointer lock api that allows apps to control user's mouse. And it can be added as a permission in chrome manifest. They only need the screen and mouse control. Which essentially means control entire machine.

Edit: never mind, I was thinking of chrome app, not the local plugin that we install for voice and video.

Re:Google Hangouts adds remote desktop support by justinschuh on Thursday June 27, 2013 @12:50AM (#5950768)
NPAPI plugins, ActiveX controls, etc. are just native libraries that are loaded into the browser's process. So, they can do anything that any other native application can do.