About Archive Tags RSS Feed

 

Did you know xine will download and execute scripts?

19 July 2014 21:50

Today I was poking around the source of Xine, the well-known media player. During the course of this poking I spotted that Xine has skin support - something I've been blissfully ignorant of for many years.

How do these skins work? You bring up the skin-browser, by default this is achieved by pressing "Ctrl-d". The browser will show you previews of the skins available, and allow you to install them.

How does Xine know what skins are available? It downloads the contents of:

NOTE: This is an insecure URL.

The downloaded file is a simple XML thing, containing references to both preview-images and download locations.

For example the theme "Sunset" has the following details:

  • Download link: http://xine.sourceforge.net/skins/Sunset.tar.gz
  • Preview link: http://xine.sourceforge.net/skins/Sunset.png

if you choose to install the skin the Sunset.tar.gz file is downloaded, via HTTP, extracted, and the shell-script doinst.sh is executed, if present.

So if you control DNS on your LAN you can execute arbitrary commands if you persuade a victim to download your "corporate xine theme".

Probably a low-risk attack, but still a surprise.

| 5 comments

 

Comments on this entry

icon Cameron Norman at 00:37 on 20 July 2014

Look at the instructions for Debian here:

https://www.arangodb.org/download

Please help them...

icon Inigo at 21:48 on 19 July 2014
http://inigo.me

To execute commands... as root.

And adding TLS sources to apt, does not fix issues like this one.

icon Steve Kemp at 09:55 on 20 July 2014
http://steve.org.uk/

Sadly that's not so unusual - just look at all the "cool" projects that can be installed via:

curl http://get.cool.project/ | sh
icon Martin at 12:37 on 20 July 2014
http://www.debian.org

That's why I totally obsessive to an almost pathological degree about using only software packaged in Debian. E.g. I never use Iceweasel plugins other than from Debian. I would be very much in favour of disabling plugin download in Iceweasel (if somebody wants alien plugins, they easily could use Firefox) and also disabling this stupid function in Debians version of xine. It is almost irresponsible to leave it in, IMHO.

icon Anobium at 04:56 on 22 July 2014

No bug report?