ASP.NET Discriminatory By Default

ASP.NET is Microsoft’s newest web application development system. Unfortunately, in its default configuration, it seriously discriminates against non-IE browsers. The browserCaps section of the machine.config or web.config configuration files uses the User Agent string to set a number of “capability” flags – such as what level of support it has for the W3C DOM, CSS and ECMAScript. However, this file knows next to nothing about non-IE browsers newer than Netscape 4.

We ran into this problem at work – ASP.NET applications looked fine in IE, but really ugly in Firefox. This was because it was treating Firefox as a really old browser, and doing its “panels” using tables instead of divs, which didn’t work very well when you nested them or tried to put them side by side. A quick update to browserCaps, as outlined on the page linked above, fixed the problem.

It would be easy to label this as part of some sort of conspiracy. I’m not going to do that, but I think Microsoft does have a duty to fix this in the next release of ASP.NET, and/or issue a patch. After all, not doing so means that their customers’ sites look terrible in some of their customers’ browsers. And they probably won’t be too happy about that, particularly if they spend hours trying to figure out why ASP.NET is generating different and broken HTML for these modern UAs.

Deceptive Documents

There have been several stories recently about collisions in MD5 hashing, the latest being a report from the Institute of Cryptography at Ruhr University giving two documents with different content but the same MD5 hash. One is a letter of recommendation, and the other is a permission to access secret files. The underling presents her boss with the first to sign, then transfers the signature to the second one.

However, one doesn’t need to do clever tricks with MD5 to achieve this end. PostScript is a Turing-complete page description language, and other document scripting languages, such as Visual Basic for Applications (Microsoft Word’s macro language) are similarly powerful. Both have access to their own filename.

So, for example, you could create a Microsoft Word document containing a macro which hid or showed different bits of text depending on the value of ActiveDocument.Name. With one name, it’s a letter of recommendation; with another, it’s a grant of permission for access to top secret files. So you present it to the victim to sign when it has one name – so when they view it, it looks innocent – and then rename it before sending it to the Security department, so when they view it you get your secret access.

You could argue that the filename should be incorporated into the data which is signed – but the script could switch on any external info it has access to, such as the IP address of the machine, or the name of the logged-in user.

The lesson here is clear: don’t sign bits you didn’t create.

Better Interest Rates For Secure Customers

A recent editorial in “Computing” weekly called “Online security is a duty for us all” discussed new measures that banks are implementing against fraud:

The banks are taking a carrot approach, carefully avoiding the stick. But if new measures fail to halt the problem, the onus might shift to the consumer. Banks may one day only indemnify customers against fraud if they have the necessary precautions in place – from suitably secured home PCs to two- or even three-factor authentication tools such as biometrics.

That could lead us down a rocky road – a banking community divided by technical ability and personal security. Would the days of better interest rates for more secure customers be far behind?

This is not an option that anybody – banks or their customers – would want to consider.

Why on earth not? It sounds like an excellent idea to me. One reason people don’t pay too much attention to the security of their PCs at the moment is that don’t have that much obvious incentive to do so. If their bank said “turn on a firewall, use a secure browser and run regular spyware scans, and we’ll give you an extra 2% on your savings”, we might see quite a few more secure PCs.

Windows May Run on Mac Hardware

CNet reports (spotted here):

After Jobs’ presentation, Apple Senior Vice President Phil Schiller addressed the issue of running Windows on Macs, saying there are no plans to sell or support Windows on an Intel-based Mac. “That doesn’t preclude someone from running it on a Mac. They probably will,” he said. “We won’t do anything to preclude that.”

However, Schiller said the company does not plan to let people run Mac OS X on other computer makers’ hardware. “We will not allow running Mac OS X on anything other than an Apple Mac,” he said.

Actually, it’s clearly in their business interests for it to be possible to run Windows on Mac hardware. Think about it: if you were buying 20 boxes for a test lab or Internet cafe, what would you get – 20 boxes which can only run Windows, or 20 boxes which can dual boot?

Allowing Windows to run on their hardware, while preventing Mac OS X from running on anyone else’s, is a really smart business move.

Jobs Galore

It’s a good time to be a browser developer. Everyone’s hiring. In alphabetical order:

I suspect AOL/Netscape are hiring too, but I can’t find a jobs page for them. Apple may well be hiring, but Googling for “Safari Jobs” just brings up a load of WWDC keynotes… And I’m sure Konqueror can always use more volunteers :-).

Clock Inaccuracy Data

It would be rather useful to have information on how inaccurate people’s clocks are. Some security protocols, such as OCSP certificate revocation checking, can (in some circumstances or configurations) be affected by how accurate the user’s clock is.

This means that if 90% of the Internet is going around with clocks which are several hours out, the protocol in that configuration would be more insecure than if everyone’s clock was accurate to the nearest second. So it would be nice to have a chart of number of users against inaccuracy.

One could measure this info reasonably easy on a web page – just call
new Date().toGMTString() and send it back to a server which is connected to an accurate clock. Does anyone know of a source of such data? Ideally, it would be from a website whose visitors were a cross-section of the Internet population.

Extracts From My Sent Mail (1)

Gervase-

Would you be available to meet in person to discuss our product and Mozilla licensing?

Kind regards-
Susannah Smith
Kinetix, Inc.
264 Dolphin Way, Suite #98
Redwood City, CA 94063
(650) 555-1234

Certainly. I could make tomorrow evening free if necessary.

I believe there are regular flights from San Francisco or Oakland to London with a variety of excellent airlines. Then you’d need to take public transport to the center of town, make your way to Finsbury Park station in the north, and take an overland train to Gordon Hill (about 25 minutes). Walk down Gordon Hill, which changes into Gordon Road; Heene Road is then the first left. I’m at number 21, flat 3. If you come at around 7pm, I’m happy to cook.

Or perhaps a teleconference might be more convenient for you? :-)

Gerv

Browser Vaccination

Thought 1: In the future, consumer-level browsers will increasingly be connected to trusted sources of sites that the browser should not attempt to visit. Many active anti-phishing schemes (such as the NetCraft toolbar) do something like this. But the lists are composed of URLs which have to be manually reported by users and verified by hand, because it’s impossible for browsers to automatically detect phishing attacks with perfect accuracy.

Thought 2: Currently, if a security hole is discovered in a browser, you generally have to update or make a configuration change to be protected – there’s no way for browser vendors to protect users who take no action. And many users don’t upgrade immediately, if at all.

So… it would certainly be technically possible for browsers to automatically detect sites attempting to exploit fixed security holes. For example, Firefox 1.0.4 could have been written to detect sites attempting to use the Firefox installation API with a javascript iconURL. Rather than just blocking the exploit attempt, it could then, either automatically or with the user’s permission, report the URL of that site back to a central server, so it could be assessed for placing in a block list feed. Such an assessment could be automatic – script a copy of the browser to go to the URL and see if it detects the exploit also.

Then, older browsers which had not been upgraded, but which were blocking sites from a list including that feed, would still have some amount of protection from attack. As soon as it had been reported by one user using a new browser, all users using older versions would be vaccinated against attack from that site.

Popup Usability

I’ve just seen the most wonderful demonstration of the (lack of) usability of security popups.

I am sitting in an XTech talk on XHTML 2. A moment ago, during the presentation, the presenter’s laptop popped up a “Zone Alarm” alert on top of his presentation. He immediately clicked “Yes”, without reading it, and carried on talking!

I have some experience of Zone Alarm, and I know that it’s very popup-happy, particularly in the default configuration where it tries hard to justify its existence by alerting the user to every incoming unknown packet. Its creators should consider how having a great deal of popups, in fact, decreases security.

P2P Data Streams

Current P2P networks are designed around providing a number of discrete files – this ISO, that audio file, the other piece of video. However, what would happen if a P2P system could distribute both data and updates to that data, in a way which let you obtain the updates in a timely fashion, and be certain the updates were provided by the provider of the original file?

  • Spam blacklist providers have terrible trouble with DOS attacks from spammers. You could distribute the blacklists over this system, removing the central vulnerable point and providing anonymity of network location for the anti-spammers.
  • Browser users would appreciate access to databases of phishing URLs, but don’t want to send every URL they visit to a third party or regularly download large lists. The lists could be distributed and updated by P2P, maintaining anonymity of access.

P2P systems have proved adept at distributing content that people don’t want distributed. The obvious example is the illegal copyright infringement which takes place when popular music and movies are shared. So why not use the same system to distribute content that the bad guys don’t want distributed?

Although I have only a limited understanding of current P2P technology, I suspect some fairly deep underlying principles would need to change. For example, you’d need to be able to identify content independently of its hash. You’d also need to be able to sign content, and link pieces of content together in a defined order, based on both being signed by the same key. There are a lot of technical issues here. But it would still be very cool…

Off to XTech

The Mozilla Foundation is co-sponsoring XTech in Amsterdam this week, and so I’m going over there for Wednesday to Friday. Although the talks will no doubt be excellent, one of my primary reasons for going is to finally meet face to face people I’ve been working with for months or years.

Those of us who have been online for a long time often forget how weird this is. Sometimes, I tell people what I spend a lot of my time doing, and they ask “So, have you ever actually met any of these people?”, as if you could all be axe murderers, and it’s not possible to know or trust someone unless you’ve looked into their eyes. Thinking about it, I know many people in the Mozilla project better than the guy who sits three desks down in my office…

Memorable Passwords

Much has been written on the subject of making memorable yet secure passwords. Here’s another small contribution.

It has been said that passwords are generally more memorable when they are pronounceable. However, for obvious reasons dictionary words do not make good passwords, and so people have focussed on generating single fairly short nonsense words from lists of pronounceable syllables. However, it seems to me that length only loosely related to memorability, and that real words are probably easier to remember and type than nonsense ones.

It’s also said that good passwords have characters from at least 2 of the sets “A-Z”, “0-9” and “punctuation”. So why not generate passwords containing two words separated by a symbol? If you give them the form [adjective][punctuation/number][noun], such as beheaded!octopus or distressed$asphalt, then they are memorable because of their weirdness, and because you can have a single mental picture to remember – your asphalt with an unhappy face, or your decapitated octopus.

The Parts of Speech Database available from Kevin’s Word List Page has 50,000 adjectives and 100,000 nouns. If you then say there are about 40 numbers/punctuation marks, that makes a possible 200 billion passwords. Quite enough to be going on with, I think. Perhaps not all the adjectives and nouns are usable, because they might be too obscure to be memorable, but you could also use pairs of adverbs and verbs to expand the possibilities.

If anyone wanted to knock up a quick web page which generated passwords from that list, we could see how well it worked in practice…

IE 7 To Support PNG Alpha Channels

No, not this one, this one.

We’ve actually had this on our radar for a long time, and have had it supported in the code for a while now. We have certainly heard the clear feedback from the web design community that per-pixel alpha is a really important feature.

I commend Microsoft for listening to their customers, and hope they will continue to do so when they hear calls for full CSS 2.1 support. :-)

Opera 8 Released

Opera has released version 8 of its browser. It comes with an interesting innovation in security UI – it displays the “O” or “Organisation” field of the certificate in the URL bar (screenshot), ostensibly to help the user in making security decisions about a site.

One concern about this is that O fields are non-unique – you can have many companies all with the same name, in different areas of a country. A recent paper demonstrates the latter problem well – the authors managed to legally and properly obtain certificates for a random domain from multiple CAs with O fields which happened to be confusingly similar to that of some major US banks. Phishers could take advantage of this loophole. Additionally, in some types of certificate the field is useless, containing a repeat of the domain name, or a liability disclaimer statement.