[NGSEC-2004-7] NtRegmon, local system denial of service.

labs_at_NGSEC
Date: 08/25/04

  • Next message: Advisories: "IRM 010: Top Layer Attack Mitigator IPS 5500 Denial of Service"
    To: bugtraq@securityfocus.com
    Date: Wed, 25 Aug 2004 11:34:37 +0200 (CEST)
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

                       Next Generation Security Technologies
                              http://www.ngsec.com
                                Security Advisory

           Title: NtRegmon, local system denial of service.
              ID: NGSEC-2004-7
     Application: NtRegmon (http://www.sysinternals.com/ntw2k/source/regmon.shtml)
            Date: 14/Aug/2004
          Status: Patched version available (6.12).
     Platform(s): Windows OSs.
          Author: Fermín J. Serna <fjserna@ngsec.com>
        Location: http://www.ngsec.com/docs/advisories/NGSEC-2004-7.txt

    Overview:
    - ---------

    NtRegmon is a Registry monitoring utility that will show you which applications
    are accessing your Registry, which keys they are accessing, and the Registry
    data that they are reading and writing - all in real-time.

    For its task NtRegmon hooks some kernel mode funtions (Registry functions) for
    its logging purposes.

    Regmon suffer from an unvalidated pointer referencing in some of this kernel
    hooks.

    While any privileged user is using NtRegmon, any local and unauthorized user
    can crash the system.

    Technical description:
    - ----------------------

    NtRegmon is a Registry monitoring utility that will show you which applications
    are accessing your Registry, which keys they are accessing, and the Registry
    data that they are reading and writing - all in real-time.

    For its task NtRegmon hooks some kernel mode funtions (Registry functions) for
    its logging purposes.

    Regmon suffers from some unvalidated pointer referencing in some of this kernel
    hooks. In example NtRegmon hooks ZwSetQueryValue declared as follows:

      NTSTATUS ZwSetQueryValue(DWORD KeyHandle, DWORD ValueName, DWORD TitleIndex,
                               DWORD Type, DWORD Data, DWORD DataSize);

    The problem exists because NtRegmon does not properly check if some argument
    pointers are valid or not. While any privileged user is using Regmon, any local
    and unauthorized user can crash the system.

    Sample exploitation cand be found:

             http://www.ngsec.com/downloads/exploits/ntregmon-dos.c

    Recommendations:
    - ----------------
    Upgrade to NtRegmon version 6.12.

    - --
    More security advisories at: http://www.ngsec.com/ngresearch/ngadvisories/
    PGP Key: http://www.ngsec.com/pgp/labs.asc

    Copyright(c) 2002-2004 NGSEC. All rights reserved.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBLFeCKrwoKcQl8Y4RAjxYAKCYw9QhDRCxnJSXd2HFt9Zp/pRgYwCfQynV
    /bdl2s6PNLcuP6kXn5pRSlg=
    =P5Yq
    -----END PGP SIGNATURE-----


  • Next message: Advisories: "IRM 010: Top Layer Attack Mitigator IPS 5500 Denial of Service"

    Relevant Pages

    • [NGSEC-2004-7] NtRegmon, local system denial of service.
      ... NtRegmon is a Registry monitoring utility that will show you which applications ... For its task NtRegmon hooks some kernel mode funtions for ... While any privileged user is using NtRegmon, ...
      (NT-Bugtraq)
    • [Full-Disclosure] [NGSEC-2004-7] NtRegmon, local system denial of service.
      ... NtRegmon is a Registry monitoring utility that will show you which applications ... For its task NtRegmon hooks some kernel mode funtions for ... While any privileged user is using NtRegmon, ...
      (Full-Disclosure)
    • [NT] NtRegmon Local Denial of Service
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... "a registry monitoring utility that will show you which applications are ... For its task NtRegmon hooks some kernel mode functions (registry ...
      (Securiteam)
    • Re: Making Users Power Users, Without Install Privlidges
      ... 'moving' them out of Administrators and back as domain users. ... I found NTRegMon very helpful for ... trapping application rights and such. ... > Grant users registry permissions they need. ...
      (microsoft.public.windows.server.active_directory)