![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/8140dda6-9512-4297-ac17-d303638c90a6.png)
Egads! My eyes.
I’d rather it was just written in assembly. It’s the do {
opening a block under the case 0
, but then proceeding to have further case
statements inside that block. You now have case statements in two different scopes that are part of the same switch.
I wouldn’t be so quick to write it off.
It’s a proof of concept showing the weaknesses in Microsoft’s vetting process for extensions published on the store. They then used the process to get pseudo-malicious code inside hundreds of organisations (not hundred of installs) some of which are high profile.