New Firefox, Chrome SRI script whip to foil man-in-the-middle diddle

Hashes to stop sly CDN tampering

Scripting will in the next few months become safer with Mozilla and Google adopting a validation mechanism to protect against man-in-the-middle attacks.

The Subresource Integrity (SRI) check is being developed by boffins at Google, Mozilla, and Dropbox under the World Wide Web Consortium.

The specification means the integrity of scripts including those developed by individual users can be determined using hashes. Dynamic scripts are more difficult given that their changing nature would continually alter hashes.

Mozilla senior software engineer and SRI author Francois Marier told the AusCERT conference on the Gold Coast today that external scripts are a serious risk noting that he found 2.5 million references in Github accounts to a JQuery script hosted on a Google server.

"What could possibly happen if someone gets into that server? An attacker could add a malicious payload to the Javascipt and then steal sessions, redirect to phishing sites, enlist users into denial of service bots and so on," Marier says.

"By putting a hash on the script, the guarantee we get from browsers is that if that script ever changes, then it will be blocked because the hash isn't going to match anymore."

Presentation podcast: download Integrity protection for third-party JavaScript.

Marier told El Reg the SRI will be within a month available in the developer editions of Google Chrome and Mozilla Firefox and will be in stable versions (Firefox version 41) in around three months.

So far Github is one of a few to adopt the mechanism in a small deployment as part of a beta test program.

SRI has a "very small" overhead as a browser resource, according to Marier who says adoption will be easy.

Marier also urged organisations to add themselves to the browser pre-load list which requires sites to run HTTP strict transport security (HSTS).

So far only 16 Australian organisations are on the lists with major businesses including banks being conspicuously absent. Some 2000 are registered globally. ®

Similar topics

Other stories you might like

  • Battlefield 2042: Please don't be the death knell of the franchise, please don't be the death knell of the franchise

    Another terrible launch, but DICE is already working on improvements

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our monthly gaming column. Since the last edition on New World, we hit level cap and the "endgame". Around this time, item duping exploits became rife and every attempt Amazon Games made to fix it just broke something else. The post-level 60 "watermark" system for gear drops is also infuriating and tedious, but not something we were able to address in the column. So bear these things in mind if you were ever tempted. On that note, it's time to look at another newly released shit show – Battlefield 2042.

    I wanted to love Battlefield 2042, I really did. After the bum note of the first-person shooter (FPS) franchise's return to Second World War theatres with Battlefield V (2018), I stupidly assumed the next entry from EA-owned Swedish developer DICE would be a return to form. I was wrong.

    The multiplayer military FPS market is dominated by two forces: Activision's Call of Duty (COD) series and EA's Battlefield. Fans of each franchise are loyal to the point of zealotry with little crossover between player bases. Here's where I stand: COD jumped the shark with Modern Warfare 2 in 2009. It's flip-flopped from WW2 to present-day combat and back again, tried sci-fi, and even the Battle Royale trend with the free-to-play Call of Duty: Warzone (2020), which has been thoroughly ruined by hackers and developer inaction.

    Continue reading
  • American diplomats' iPhones reportedly compromised by NSO Group intrusion software

    Reuters claims nine State Department employees outside the US had their devices hacked

    The Apple iPhones of at least nine US State Department officials were compromised by an unidentified entity using NSO Group's Pegasus spyware, according to a report published Friday by Reuters.

    NSO Group in an email to The Register said it has blocked an unnamed customers' access to its system upon receiving an inquiry about the incident but has yet to confirm whether its software was involved.

    "Once the inquiry was received, and before any investigation under our compliance policy, we have decided to immediately terminate relevant customers’ access to the system, due to the severity of the allegations," an NSO spokesperson told The Register in an email. "To this point, we haven’t received any information nor the phone numbers, nor any indication that NSO’s tools were used in this case."

    Continue reading
  • Utility biz Delta-Montrose Electric Association loses billing capability and two decades of records after cyber attack

    All together now - R, A, N, S, O...

    A US utility company based in Colorado was hit by a ransomware attack in November that wiped out two decades' worth of records and knocked out billing systems that won't be restored until next week at the earliest.

    The attack was detailed by the Delta-Montrose Electric Association (DMEA) in a post on its website explaining that current customers won't be penalised for being unable to pay their bills because of the incident.

    "We are a victim of a malicious cyber security attack. In the middle of an investigation, that is as far as I’m willing to go," DMEA chief exec Alyssa Clemsen Roberts told a public board meeting, as reported by a local paper.

    Continue reading

Biting the hand that feeds IT © 1998–2021