News: 1611779171

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Knock, knock. Who's there? NAT. Nat who? A NAT URL-borne killer

(2021/01/27)


Video Ben Seri and Gregory Vishnepolsky, threat researchers at Armis, have found a way to expand upon the NAT Slipstream attack disclosed last year by Samy Kamkar, CSO of Openpath Security.

The original [1]NAT Slipstream potentially allowed a miscreant to access any TCP/UDP service tied to a victim's machine by bypassing the victim's NAT (Network Address Translation) and firewall defenses. It can be triggered via JavaScript code on a malicious website.

[2]

NAT Slipstream v2 takes the technique further by allowing a hacker to penetrate a vulnerable NAT/firewall and reach any internal IP on the network, rather than just the IP address of the victim's device.

We did NAT see that coming: How malicious JavaScript can open holes in your firewall for miscreants to slip through [3]READ MORE

[4]

In other words, it may expose every connected thing on a targeted network – printers, video cameras, industrial control systems, and other unmanaged hardware – to the internet. Such devices, which generally lack security controls, may then be compromised and commandeered or otherwise abused.

Version one of the attack involves using malicious JavaScript code that sends traffic to the victim's machine using a protocol that traverses NAT and obtains the IP address of the victim's computer. The script then builds an outbound HTTP POST request that tries to initiate a SIP video-conferencing session. The victim's vulnerable NAT/firewall's Application Level Gateway (ALG) then opens an external port to the victim's device.

When Kamkar corresponded with The Register last year, he noted that browsers support protocols like WebRTC [5]TURN (Traversal Using Relays around NAT) that evade port blocks and might be useful for further attacks.

You were warned

NAT Slipstream v2 validates that supposition. It relies on H.323, a VoIP protocol similar to SIP, and WebRTC TURN.

"The new variant to the NAT Slipstreaming attack is comprised of two primitives, the first explores the H.323 ALG, and the second expands the attack surface of the various NAT ALGs reachable from a browser, by abusing the WebRTC TURN server API via JavaScript," explain Seri and Vishnepolsky in a [6]blog post .

The process is demonstrated in this video:

[7]Youtube Video

But Seri and Vishnepolsky add that the risk presented by this attack depends upon how the traffic gets handled and the specific implementation of the targeted system because not all NATs provide ALGs nor enable them by default.

On Linux 4.14 and above, they observe, the exploited ALG behavior is disabled by default for security reasons. At the same time, they point out that consumer-grade routers rely on older Linux versions and some Linux-based products re-activate the vulnerable behavior. They said that OpenWRT, a Linux based router distribution using the 4.1 kernel, is not affected, but "most routers/NATs/firewalls are affected at least in some way."

The researchers disclosed their findings to the major browser vendors back in November 2020, and patches, consisting of port restrictions, have been deployed since then.

Chrome's fix arrived in [8]v87.0.4280.141 , on January 6, 2021. Microsoft Edge also deployed its fix, in [9]v87.0.664.75 , Apple released [10]Safari v14.0.3 beta , with a stable channel release expected soon. And Mozilla's fixed up [11]Firefox 85 arrived on Tuesday, January 26.

Seri and Vishnepolsky expressed doubt that these defenses will be the end of this particular attack vector. NATs, they say, were designed at a time when security was not a priority.

[12]

"Legacy requirements such as ALGs, are still a dominant theme in the design of NATs, today, and are the primary reason bypassing attacks are found again and again," they conclude. ®

Get our [13]Tech Resources



[1] https://www.theregister.com/2020/11/02/application_level_gateway_flaw/

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YBHwhcR4AqVBIWZPWHWJUgAAAEs&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://www.theregister.com/2020/11/02/application_level_gateway_flaw/

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YBHwhcR4AqVBIWZPWHWJUgAAAEs&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[5] https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Protocols

[6] https://www.armis.com/resources/iot-security-blog/nat-slipstreaming-v2-0-new-attack-variant-can-expose-all-internal-network-devices-to-the-internet/#details

[7] https://www.youtube.com/watch?v=M-6ppoYDEV4

[8] https://chromereleases.googleblog.com/2021/01/stable-channel-update-for-desktop.html

[9] https://msrc.microsoft.com/update-guide/en-us/vulnerability/ADV200002

[10] https://support.apple.com/en-us/HT201222

[11] https://www.theregister.com/2021/01/27/firefox_85_crumbles_supercookies/

[12] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YBHwhcR4AqVBIWZPWHWJUgAAAEs&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[13] https://whitepapers.theregister.com/

Web browsers need a built-in firewall....

LDS

As long as they try to become an OS, they need it too... all the WebXXX features are just too dangerous to let code you download from external sources use them.

Re: Web browsers need a built-in firewall....

Duncan Macdonald

With one rule - NO JAVASCRIPT

Every browser security bug that I can remember depends on the ability to make the browser execute code (ActiveX, Flash, Javascript etc). If a browser was only a browser (HTML only - no Javascript or other means of executing code) then the whole browser security mess would disappear.

(What legitimate activities require scripting in the browser instead of in the server ?)

It is possible to use The Register with scripting disabled - why can that not become the norm for all sites?

Icon for the poor security in Javascript. =====================>

Unsure whether

don't you hate it when you lose your account

To blame modern browsers or the old bastard known as NAT. But it makes for a messy situation.

In most instances, all an argument proves is that two people are present.