"Can you spot the security hole?"

Submitted by giulio.cesare on Wed, 2005-08-17 15:12.

Microsoft has published a full page ad on the latest issue of ACM Communications with the code snippet that led to the Blaster worm:

HRESULT GetMachineName(WCHAR *pwszPath) {
    WCHAR   wszMachineName[N + 1])
    LPWSTR  pwszServerName = wszMachineName;
    while (*pwszPath != L'\\' )
        *pwszServerName++ = *pwszPath++;
    ...
}

Below this code there was the following text:

More importantly, can your students?

Microsoft want us to believe that teachers and students are to be blamed for the security holes in their operating systems!

Microsoft employees beware: you could be the next to be held responsible for all the damage caused by your submitted code.

By the way, the main topic of the issue where the ad has been published is “Spyware”. ROTFL!

Update: I was kidding, but somebody else is not