\n

We created a C# Azure function which loads a native DLL and calls the load function.

\n

\n

The load function brute forces the handles until it finds an open one whose name starts with “iisipm”. Then it constructs the malicious message and sends it immediately. As a result, DWASSVC crashes.

\n

Although we only demonstrated a crash, this vulnerability could be exploited to a privilege escalation.

\n

Impact

\n

Microsoft has various App Service plans:

\n\n

For more information, see: https://docs.microsoft.com/en-us/azure/app-service/overview-hosting-plans

\n

 

\n

Exploiting this vulnerability in all of the plans could allow us to compromise Microsoft’s App Service infrastructure. However, exploiting it specifically on a Free/Shared plan could also allow us to compromise other tenant apps, data, and accounts! Thus breaking the security model of App Service.

\n

Conclusion

\n

The cloud is not a magical place. Although it is considered safe, it is ultimately an infrastructure that consists of code that can have vulnerabilities – just as we demonstrated in this article.

\n

This vulnerability was disclosed and fixed by Microsoft and assigned as CVE-2019-1372.
\nMicrosoft acknowledged that this vulnerability worked on Azure Cloud and Azure Stack

\n","status":"PUBLISHED","fileName":null,"link":"https://research.checkpoint.com/2020/remote-cloud-execution-critical-vulnerabilities-in-azure-cloud-infrastructure-part-ii/","tags":[],"score":0.7365412712097168,"topStoryDate":null},{"id":"309","type":"Blog_Publication","name":"eBay Platform Exposed to Severe Vulnerability","author":"Check Point Research Team","date":1454450416000,"description":"Check Point alerts eBay to an online sales platform vulnerability which allows cyber criminals to distribute phishing and malware campaigns. eBay, the online auction and e-commerce giant, has locations in over 30 countries and serves more than 150 million active users worldwide. As a successful company","content":"

Check Point alerts eBay to an online sales platform vulnerability which allows cyber criminals to distribute phishing and malware campaigns.

\n

eBay, the online auction and e-commerce giant, has locations in over 30 countries and serves more than 150 million active users worldwide. As a successful company with a massive customer base, it’s no surprise that the corporation has been the target of many cyberattacks.

\n

Check Point has discovered a severe vulnerability in eBay’s online sales platform. This vulnerability allows attackers to bypass eBay’s code validation and control the vulnerable code remotely to execute malicious Java script code on targeted eBay users. If this flaw is left unpatched, eBay’s customers will continue to be exposed to potential phishing attacks and data theft.

\n

An attacker could target eBay users by sending them a legitimate page that contains malicious code. Customers can be tricked into opening the page, and the code will then be executed by the user’s browser or mobile app, leading to multiple ominous scenarios that range from phishing to binary download.

\n

After the flaw was discovered, Check Point disclosed details of the vulnerability to eBay on Dec 15, 2015. However, on January 16, 2016, eBay stated that they have no plans to fix the vulnerability. The exploit Demo is still live.

\n

 

\n

 

\n

 

\n

 

\n

Vulnerability Discovery

\n

Check Point security researcher Roman Zaikin recently discovered a vulnerability that allows attackers to execute malicious code on eBay users’ devices, using a non-standard technique called “JSF**k.” This vulnerability could allow cyber criminals to use eBay as a phishing and malware distribution platform.

\n

To exploit this vulnerability, all an attacker needs to do is create an online eBay store. In his store details, he posts a maliciously crafted item description. eBay prevents users from including scripts or iFrames by filtering out those HTML tags. However, by using JSF**k, the attacker is able to create a code that will load an additional JS code from his server. This allows the attacker to insert a remote controllable JavaScript that he can adjust to, for example, create multiple payloads for a different user agent.

\n

eBay performs simple verification, but only strips alpha-numeric characters from inside the script tags. The JSF**k technique allows the attackers to get around this protection by using a very limited and reduced number of characters.

\n

This is what you get if you include your remote website JavaScript:

\n

\"pic

\n

 
\nThis is how a simple JSF**k script looks:

\n

\"pic

\n

 
\nThis is how a successful exploitation of the vulnerability would look:

\n

\"pic

\n

 

\n

As shown, the message which appears on eBay’s website application (specifically, on the attacker’s store on the eBay site) entices the unsuspecting user into downloading a new eBay mobile application by offering a one-time discount.

\n

For example, if a user taps the `download` button, he will unknowingly download a malicious application to his mobile device.

\n

 

\n

Check Point Says…

\n

“The eBay attack flow provides cybercriminals with a very easy way to target users: sending a link to a very attractive product to execute the attack. The main threat is spreading malware and stealing private information. Another threat is that an attacker could have an alternate login option pop up via Gmail or Facebook and hijack the user’s account,” said Oded Vanunu, Security Research Group Manager at Check Point. “Check Point continues to be on the lookout for vulnerabilities in common software apps and Internet platforms. By disclosing threats as they are discovered today, we protect the future.”

\n

\n

 

\n

About JSF**k

\n

Written by Martin Kleppe, this technique, which uses non-alphanumeric characters, allows the attacker to bypass IDSsIPSs  and WAFs payload sanitation. Only 6 different characters are used: []()!+

\n

The following basic vocabulary helps us write anything we need:

\n
    \n
  1. [ and ] – Access array elements, objects properties, get numbers and cast elements to strings.
  2. \n
  3. ( and ) – Call functions and avoid parsing errors.
  4. \n
  5. + – Append strings, sum and cast elements to numbers.
  6. \n
  7. ! – Cast elements to Booleans.
  8. \n
\n

 

\n

How the Logic Works

\n

Let’s start by representing numbers using this technique. If you want to get 0, it’s written as +[]:

\n

\"pic

\n

This works because we print the first value from an empty list, so it is zero.

\n

According to our basic vocabulary, if you want to cast that to Boolean values “true” or “false”, we just add an exclamation point “!”:

\n

\"pic

\n

If we cast “true” to an integer, we get the number 1.

\n

To cast the Booleans to integers, all we do is to add +. If we want strings, we add +[], as in the following:

\n

\"pic

\n

As you can see, the logic is very simple. If we want to combine them to get bigger numbers such as 123, we just write the number 1,2,3 as strings and translate it to an integer. We can write any integer we like with this technique.

\n

\"pic

\n

To get characters, we write the same symbols and use the output as an array, as in the following:

\n\n

Using the symbols, we get these characters: “a”, “b”, “c”, “d”, “e”, “f”, “i”, “j”, “l”, “n”, “N”, “o”, “O”, “r”, “s”, “t” and “u”.

\n

Playing with our alphabet and these strings, we can get the following functions:

\n\n

Exploring the DOM helps us get the rest of the characters, such as:

\n

Function(“return location”)() gives us “h”, “p”, “/”, so we can now create a word.

\n

Unescape(“%” + HEXA_ASCII_VALUE) – We are missing the character %, but can obtain it by escaping “[“. This gives us the output %5B.

\n

\"pic

\n

The following code represents the text alert(1) within JavaScript tags:

\n

\"pic

\n

The result is normal JavaScript code with 6 non-alphabetic characters.

\n

 

\n

 

\n

Responsible Disclosure and eBay’s Response

\n

Our initial report was on December 15th, followed by a PoC (proof of concept) and a description of the vulnerability details.

\n

Apparently, someone in eBay decided that this is not vulnerability, as they allow active content?

\n

Let’s go back to the topic of active content. Yes, eBay does allow active content but it has a very strict policy to control what it does allow (for obvious reasons).

\n

\"pic

\n

As we demonstrated to the eBay security team in the PoC, we were able to bypass their security policies and insert a malicious code to our seller page without any difficulty or restriction.

\n

At this point, all we can do is hope that eBay will eventually decide to do something about this vulnerability.

\n

 

\n

The post eBay Platform Exposed to Severe Vulnerability appeared first on Check Point Blog.

\n","status":"PUBLISHED","fileName":"169402199","link":"http://blog.checkpoint.com/2016/02/02/ebay-platform-exposed-to-severe-vulnerability/","tags":[],"score":0.4823150634765625,"topStoryDate":null}],"mapData":null,"topMalwareFamilies":null};