Suspect Syndication

Sometimes you discover the weirdest things about the Internet via unsuspected routes.

My post about Facebook and email addresses got a lot of pingbacks from around the world. Often, they were syndications, perhaps of dubious legality, of earlier articles. In several cases, the legality was clearly dubious, because the syndicator had gone to some effort to disguise the text. There were four like this one, where, fascinatingly, the text appears to have been run through a system which uses synonyms and other changes to make it not recognisable from a simple web search. Compare the original, from CNN Money (and also my blog, which they are quoting):

Blogger Gervase Markham, one of the first to draw attention to the change, was scathing in his comments on it.

“Facebook silently inserted themselves into the path of formerly-direct unencrypted communications from people who want to email me. In other contexts, this is known as a Man In The Middle (MITM) attack,” he wrote, referring to a tactic hackers use to intercept electronic messages. “What on earth do they think they are playing at?”

with this barely-understandable version:

Blogger Gervase Markham, one of a initial to pull courtesy to a change, was sardonic in his comments upon it.

“Facebook silently extrinsic themselves in to a trail of formerly-direct unencrypted communications from people who wish to email me. In alternative contexts, this is well known as a Man In The Middle (MITM) attack,” he wrote, referring to a tactic hackers make make make make make use of of of of of to prevent electronic messages. “What upon earth do they consider they have been personification at?”

Some of the changes don’t even seem like synonyms – “attention” -> “courtesy”? Note also the words repeated 5 times – looks like they replace “use” with “make use of”, but have run the algorithm over the text more than once!

Here’s another one, which makes heavy use of entities, replacing letters with lookalikes from Cyrillic or simply HTML entities:

Th&#1077 exchange, first uncovered b&#1091 hacker Gervase Markham, means th&#1072t &#1072n&#1091 email post you received through Facebook since Friday h&#1072&#957&#1077 been routed back into the Facebook Post inbox, rather th&#1072n into your email inbox. Annoying? I don’t know. something to &#609&#1077t really angry about? I don’t know — maybe you w&#1077r&#1077 expecting &#1109&#959m&#1077 vastly time sensitive email to come through Facebook. but f&#959r the m&#959&#1109t &#1088&#1072rt, w&#1077’d estimate th&#1072t public are more shocked th&#1072t th&#1077&#1091 h&#1072&#957&#1077 &#1072n @facebook email take up th&#1072n the fact th&#1072t Facebook pulled a switcharoo.

Does that look normal? Here’s the source:

Th&#1077 exchange, first uncovered b&#1091 hacker Gervase Markham, means th&#1072t &#1072n&#1091 email post you received through Facebook since Friday h&#1072&#957&#1077 been routed back into the Facebook Post inbox, rather th&#1072n into your email inbox. Annoying? I don’t know. something to &#609&#1077t really angry about? I don’t know — maybe you w&#1077r&#1077 expecting &#1109&#959m&#1077 vastly time sensitive email to come through Facebook. but f&#959r the m&#959&#1109t &#1088&#1072rt, w&#1077’d estimate th&#1072t public are more shocked th&#1072t th&#1077&#1091 h&#1072&#957&#1077 &#1072n @facebook email take up th&#1072n the fact th&#1072t Facebook pulled a switcharoo.

Can I Get A Witness?

The developer who started the Witness web app has had to bow out of the project. Are there any other Djangonauts/Pythonistas out there who would like to finish the building of something relatively small, self-contained and useful to Mozilla? Here’s a description of the project:

“Witness” will be a web app which provides proof that person A has agreed to legal document X.

There are loads of applications for this:

  • Proof that a Mozilla contributor has agreed to our Committer’s Agreement
  • Proof that someone has agreed to the IPR policy necessary for contributing to a standards body mailing list
  • Proof that someone has agreed to a trademark licence

These things can be done without an app, but it’s dull and tedious for the person doing the paperwork. Much better to get a computer to do it.

It would involve, among other things, playing with Persona/BrowserID. If you are interested, drop me a line and I’ll point you at the code.

How To Make A Decent Password Strength Meter?

This discussion came up in mozilla.dev.identity – how do you make a decent password strength meter? Now it could be that someone’s already done this (links?), but I’ve never been embarrassed about reinventing the wheel, so here are my thoughts.

IMO, most password strength indicators suck. They give a fixed bonus for adding punctuation or numbers or upper-case letters, and you can’t have a strong password until you have several of those categories. Therefore, to take random examples, a lot of them think “correct horse battery staple” is a worse password than “Tr0ub4dor&3”.

Inspired by xkcd, here’s a straw-man proposal for a Unicode password strength meter which avoids some of the obvious flaws, while still not being overly-complex to implement. Note that this is about strength (resistance to brute force attacks), not about memorability or anything else.

  1. Classify every code point by its Unicode script. (The data needed for this is not large, as most scripts are in contiguous ranges.)
  2. For each script used, take the number of commonly-used characters (this would be a predefined lookup table), and add the values together to make an “entropy” value, which is a rough proxy for the size of the character space from which the password’s characters were taken. So e.g. an Arabic numeral is 10, an unaccented Latin letter is 26, an uppercase Latin letter is 26, a Chinese character would be about 20,000.
  3. Multiply the entropy by the password length in characters.
  4. Make sure it’s over a certain threshold, which can vary depending on the application. You might use 300 for web forum membership login, and 1000 for a bank. One could develop recommendations.

e.g.

“Tr0ub4dor&3”:

  26 (lower-case Latin letter)
+ 26 (upper-case Latin letter)
+ 10 (Arabic numeral)
+ 15 (simple punctuation)
= 77

77 * 11 = 847

“correct horse battery staple”:

  26 (lower-case Latin letter)
+ 15 (simple punctuation)
= 41

41 * 28 = 1148

Now, the flaw of this proposal is that the measure assumes all the password characters are independently chosen. Perhaps the way to solve that is to add or multiply a bonus for “script transitions” – letters to punctuation, one alphabet to another alphabet, etc. Because words, the most common case where successive characters are not independent of each other, are most often all one script.

“Tr0ub4dor&3” has 7 such transitions, “correct horse battery staple” has 6. But “intelligentsia”, while being long, has none.

Thoughts?

MediaWiki “Help”

MediaWiki’s Help page, at least on the Mozilla Wiki, is far too complex. One of the first topics it covers is the occasional need to do a dummy edit to refresh the internal database caches. I suggest this is unlikely to be uppermost in the mind of most people visiting that page. How to do a link is on the 5th page down on my large monitor, and how to emphasize text is on the 8th page.

Here’s Help:Me, a much simpler page which attempts to show the most important things by example. Do let me know what you think.

Browser Buster II – Add-on Version

Browser Buster, the stress-testing page for Firefox Mobile I mentioned a week or two ago is now an add-on.

You can stress-test Firefox Mobile by visiting http://bit.ly/LH7Kmc , installing the add-on, opening 3 tabs on any web page and then leaving your phone running. Make sure you are on WiFi, and plugged in to power.

Geeky Details

Unfortunately, the Jetpack API for Firefox Mobile is not all there yet, and so I’ve had to implement it in a rather unusual way, using PageMod rather than the Tabs API. The add-on inserts a bit of JS into every page loaded telling it to redirect to a new random URL after 7 seconds.

So this version is not vulnerable to frame-busting scripts, but it is vulnerable to onload modal popups (“Hey! We have an Android app!”) and to pages failing to load entirely. Still, it seems to have better uptime than the iframe-based version. Once the Tabs API is implemented for Jetpack on Firefox Mobile, I can revise it again to be even more robust. It could also now be changed to interact with the page more – clicking links, changing the DOM etc. A good project for someone who sees potential here and wants to take this further.

Top tip: have it running in 3 tabs at once, and keep the tab dropdown open. The thumbnails don’t update (Boo!) but the page titles do, so you can see if it’s got stuck on a page, e.g. “Problem loading page”.

You can enable and disable it via about:addons. Note that because of the way I’ve had to implement it, it makes normal browsing pretty much unusable (“stop redirecting me to random pages!”), so you’ll want to disable it when not testing.

Firefox Mobile’s stability seems to have improved recently; I’ve not seen any crashes with Nightly all morning.

Mobile Market Reports

“thinkinsights” and Google have released some fascinating data about smartphone usage, gathered from detailed consumer surveys.

All the presentation reports (right hand column) have roughly the same format. Why not download the report for your country, and the one for Brazil (the launch country for B2G) and see how different things are there compared to where you live?

Compared to the UK, in Brazil:

  • Far fewer people have smartphones (14% vs 51%)
  • Smartphones are used less often (40% vs 59% daily)
  • They are used on-the-go less often (64% vs 86%) – poorer network coverage?
  • Social networking is proportionately more popular than email
  • Smartphone gaming is significantly less popular (39% vs 62%)
  • They use fewer apps, even free ones (14 vs 23 installed)
  • Almost all smartphone users are urban
  • Cohabitation is significantly less common (20% vs 11%)

Thoughts: reading between the lines, network coverage is poorer and data-on-the-go is harder to find. We need to make sure B2G phones and apps are solid in absence of a good network connection. Also, the phone will be the only computing device for many users.

The ‘other-licenses’ Directory: Don’t Use It

This is a public service announcement. There is a top-level directory in mozilla-central (and similar repos) called “other-licenses”. Don’t put any more code in it. Really. There’s now even a README saying so.

Longer version: this directory is not for non-MPLed code, it’s for non-MPL-compatible code, of which we have very little. There is some stuff in there which shouldn’t be, but let’s not make it worse, OK? :-) Keep your code where it logically lives; don’t make your life harder than it needs to be. If you really think you are importing code which needs to be in there, you should be talking to licensing@mozilla.org first (as with any code import) and explicitly saying you think that this is where it should go, so they can tell you that you’re wrong ;-)

WikiProject Mozilla: Help Wanted

A week ago I lamented the sad state of the Mozilla-related articles on Wikipedia, and suggested it would be good to form a “WikiProject Mozilla” to clean them up. Robert McKay was kind enough to write a proposal on Wikipedia for such a project. If you are an existing regular or semi-regular Wikipedia editor and would like to help Mozilla by working on this, please add your “~~~~” to the Support section of that page, and keep an eye on its progress.

Mozilla Grows Too Big For Summit

A quick Public Service Announcement, just in case anyone still has their summer plans on hold: Mozilla is now too large (yay!) to get us all in one physical location. So there won’t be a Mozilla Summit this year. Instead, the hard-working Contributor Engagement team is stepping up the pace on regional MozCamps – we’ve already had one in Latin America, and they are planning one for Europe, one for Asia and one for Africa/The Middle East before the end of the year. I won’t steal their thunder; look for more details very soon :-)

GSoC 2012 Project List

The Google Summer of Code kicked off two weeks ago, and I am pleased to list the 18 projects being done under the Mozilla banner. This is a 50% increase on last year; we are very grateful to Google for being so generous with slots. The name of each student is linked to the location where they will be posting weekly updates on their progress, if you want to follow along with a project you are interested in. (Apart from those students who have not yet sent me this information; consider this a public reminder.) I’m sure they would appreciate any help or advice you have :-) Please make them feel welcome!

Project Student Mentor
Thunderbird: ‘No Reply’ Reminder Han Lin Jonathan Protzenko
Thunderbird: App Tabs Nguyen Ngoc Trung Mike Conley
Calendar: Improve Invitation Support Christian Kulpa Ludovic Marcotte
Dynamic MathML – Support <maction> Andrii Zui Fred Wang
HTML5 and CSS3 Examples on MDN Vikash Agrawal Jean-Yves Perrier
Get ISPDB Into Production Sergio Charpinel Blake Winton
Graphical Timeline of Browser Events Girish Sharma Panos Astithas
Improve Gmail Interoperability Atul Jangra David Bienvenu
Instantbird: Account Import Wizard Will Nayes Florian Quèze
L10n Tool for Standardization of Terms Gautam Akiwate Philippe Dessante
Meemoo Improvements Vilson Vieira Forrest Oliphant
Native Webapps Support on Linux Marco Castelluccio Felipe Gomes
Networking Dashboard Jiten Thakkar Patrick McManus
OpenBadges Back End Improvements Matthew Ramir Chris McAvoy
Port SuperTux to the Web Xingxing Pan Alon Zakai
Slide Drive Improvements Jeremy Banks Greg Wilson
User-Specified Content Security Policy Kailas Ravsaheb Patil Tanvi Vyas
WebSocket Testing Tool Robert Koch Yvan Boily

Moar Crashes Please

I’ve heard it would be helpful to the Fennec Native team if they had more crash data. So I’ve written the world’s simplest random website loader. Load it up on your phone or tablet and just let it go. It loads a new random page every 10 seconds. Glance at it every 10 minutes and submit any crashes that appear, or hit “Back” if a frame-busting script broke it. You can test Fennec while doing something else! :-)

I’ve been running it on my phone and tablet for an hour and a half, and submitted 2 tablet crashes (one Flash, one in libdvm).

Of course, it may not produce a high crash volume because it doesn’t interact with the page. Ideally, it would be an add-on, so frame-busting wouldn’t affect it, it could dismiss pop-ups, follow links, crash reports would have the correct URL, and perhaps it could even auto-submit crash reports and restart itself. Suggestions for better tools to use would be most welcome.

Wikipedia On Mozilla

I recently read an article on Science Daily entitled: “Most Wikipedia Entries About Companies Contain Factual Errors”, which noted that companies often found it very hard to correct articles about themselves.

I noticed a while ago that there are several articles on Mozilla-related topics on Wikipedia which are out of date, poorly authored, uneven in coverage or all three. Some examples:

  • Mozilla: I cleaned up this article a bit in December, but it still needs further work – the order of items is chronological rather than in order of importance, and there are significant parts out of date (e.g. references to Minimo).
  • Mozilla Foundation: this page is quite accurate, but very incomplete. It says nothing about the Foundation’s most recent projects, the Webmakers initiative or the Mozilla Festival.
  • Mozilla Application Suite: this article is in the present rather than the past tense, suggesting that the Suite is still viable software.
  • SeaMonkey: this article contains far less detail than the Mozilla Application Suite article, despite being a current project.
  • Firefox: this is better than many, but has many “may be out of date” annotations, and needs someone familiar with Mozilla’s current doings to improve it.
  • Thunderbird: some good stuff but also a useless list of historical system requirements.

We’re a significant feature of the Internet and contemporary life, and we should have better quality coverage than this. Are there any Mozillians who are also Wikipedians who would like to form a “WikiProject Mozilla” or similar effort to clean these up? This is not a case of doing a few drive-by edits; that’s probably how the articles got the way they are now. It would need some commitment and proper sourcing and research. But it is important.

Blinded By Greed

A recent email exchange I was involved in:

To whom it may concern,
I have recently had email with Mozilla firefox logos stating I have won £750,000 and I have to travel to Spain to collect the payment. Also I have to pay a fee to collect such winnings. They claim I have won a competion and won’t transfer the winnings into my bank account til I travel to Spain and collect. All I want to know is this true or false because I feel I have been scammed and I not in a position to leave my location.
Please can you confirm and respond in any emails.

It’s a hoax. Do not respond and don’t send them any money.

Gerv

I have just had a phone call askin for my bank account details and they will transfer via bank and it was from Mozilla uk to fax my details to them. You may say hoax I’m not sure as they did not ask for money up front.

Look, it’s a hoax. You were foolish to give them your phone number, and are foolish to continue contacting them. Stop. We are not giving away money!

Why did you ask Mozilla about the truth of this claim if you are not going to believe our answer?

Gerv

Mozilla and Patents

Harvey Anderson, Mozilla’s General Counsel (that is, chief lawyer), has written a couple of blogposts recently on Mozilla and software patents.

  • The first was about the Microsoft purchase of the AOL/Netscape patents;
  • The second contains some more general thoughts on Mozilla’s patent strategy.

Also noteworthy is Twitter’s announcement today of the “Innovator’s Patent Agreement” (IPA), a model agreement for companies to come to with their employees, such that the company can still file for patents on the employee’s inventions but those patents can only be used defensively. You can read the draft IPA on GitHub, and even fork it and submit pull requests :-)