uBlock Origin fixes a one-click XSS, ParadeDB joins, and free CMU courses

2 days ago

A hostile web page could make uBlock Origin on Firefox run its JavaScript on any other site with one click, and it is fixed in 1.75.4. Also from Monday's Hacker News front page: ParadeDB's Rank Join for search across joined Postgres tables, Tor's emergency release against a network-wide DDoS, and Carnegie Mellon's computer science courses on YouTube. Universal XSS in uBlock Origin from website-driven element picker, by Smitty van Bodegom https://iter.ca/post/ubo-uxss/ Advisory: https://github.com/gorhill/uBlock/security/advisories/GHSA-cmqw-9r2w-6wv2 Discussion: https://news.ycombinator.com/item?id=50513160 jonhohle on the install ID as a fingerprint: https://news.ycombinator.com/item?id=50517453 abcd_f on the same point: https://news.ycombinator.com/item?id=50517329 akersten on moving the picker out of the page: https://news.ycombinator.com/item?id=50513700 bita_nidir on checking for the update: https://news.ycombinator.com/item?id=50516230 Do we still have to denormalize? Have your schema and search it too, by Stu Hood https://www.paradedb.com/blog/joins Discussion: https://news.ycombinator.com/item?id=50484998 amluto on the motivating query: https://news.ycombinator.com/item?id=50514286 Tor security release 0.4.9.17 https://forum.torproject.org/t/security-release-0-4-9-17/22454 Release notes: https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.9/ReleaseNotes Discussion: https://news.ycombinator.com/item?id=50512441 Actor, a relay operator, on the attack at home: https://news.ycombinator.com/item?id=50513763 Carnegie Mellon is putting computer science courses on YouTube for free https://www.cs.cmu.edu/learn/ Discussion: https://news.ycombinator.com/item?id=50522980 Phillip Compeau, who runs CS Learn: https://news.ycombinator.com/item?id=50523040

Ask about this presentation

Chapters

  1. 0:00uBlock Origin’s one-click XSS
  2. 0:38How the element picker was hijacked
  3. 1:23The fix, and the fingerprint
  4. 2:06ParadeDB search joins
  5. 2:46Tor 0.4.9.17 counts IPv6 by /64
  6. 3:33Carnegie Mellon’s courses on YouTube
Show transcript
  1. On Monday's Hacker News front page, uBlock Origin for Firefox turned out to have a universal cross-site scripting bug. A malicious website could get the extension to add a trusted filter for any other site, and trusted filters can inject scripts. So one click on the bad page meant its JavaScript ran inside your bank, your mail, anywhere. It is fixed in version 1.75.4. Firefox should update it on its own, but one commenter, bita_nidir, found theirs had not, so it is worth checking for updates in the add-ons page.

    Slide text
    Security · Firefox

    One click on a hostile page let it run JavaScript on any site, through uBlock Origin

    Fixed in uBlock Origin 1.75.4
    Check about:addons
  2. The element picker is the tool you open from the right-click menu to block one thing on a page. On Firefox, its address includes a random ID for your install, and a default ad filter fetches a file from the extension, so a page that hooks its own network calls can read that ID. With it, the page loads the picker inside an invisible iframe and sends it messages, which the picker trusted. A newline in one of those messages adds a scripting filter the picker would normally refuse. Then the user only has to click where the hidden Create button sits. Smitty van Bodegom reported it on November 1st, and the first fix shipped two days later.

    Slide text

    The attack drove uBlock Origin’s own element picker

    1 Leak the extension’s ID

    A stock ad filter fetches a file from the extension, and the page watches that request.

    2 Frame the picker

    The picker’s page loads in an invisible iframe on the attacker’s site.

    3 Smuggle a filter

    A newline in one field slips in a trusted filter that injects a script.

    4 Get the click

    The user clicks the page and hits the hidden Create button.

  3. In 1.75.4 the picker starts only when the extension hands it a secret token, and 1.76.0 checks every filter the picker is about to create and switches off the kind of filter that leaked the ID. The smaller version, uBO Lite, had a similar but less serious problem. In the thread, jonhohle and others noticed the leftover issue: that install ID is random per install, and a page that can read it can recognise you across visits. akersten asked why the picker lives in the web page at all, when the browser's own interface would keep pages away from it.

    Slide text

    The picker now needs a secret, and the install ID is still a fingerprint

    The picker only starts with a secret token from the extension
    Filters made in the picker are validated before they are saved

    A per-install ID that any page can read is a stable tracking ID.

    jonhohle, abcd_f

    Put the create-rule control in the browser’s own interface, out of the page.

    akersten
  4. If your search box has to look across users, posts and comments, the usual answer is to flatten them into one index, often in Elasticsearch, and keep the copy in sync. ParadeDB 0.26.4 adds a Rank Join, so the plain three-table query works inside Postgres. It streams each table in score order and stops as soon as nothing left can beat the top 20. That query drops from about two minutes in plain Postgres to about a tenth of a second, on one core. In the thread, amluto questioned whether you would really want a user to match because of an unrelated post.

    Slide text
    Databases · Postgres

    ParadeDB ranks search results across joined tables without denormalizing

    Postgres
    118 s
    ParadeDB
    0.1 s
    Top 20 matches for one word across users, posts and comments in the StackOverflow dump.
  5. The Tor network is under a sustained DDoS attack, with relays flooded by client circuits, and most relay operators have felt it. In the thread, a relay operator named Actor said their home connection lost 99 percent of its download speed before they switched the relay off. Tor 0.4.9.17 closes a gap in the relay defenses: they rate-limited each IPv6 address separately, and one machine can hold a whole /64 block of them. Now the block counts as one client. The release also drops the keys of the bastet directory authority over a possible compromise. If you run a relay, upgrade; more defenses are expected in further releases.

    Slide text
    Security · Tor

    Tor relays now count a whole IPv6 /64 as one client

    Before 0.4.9.17
    DoS limits applied to each IPv6 address
    In 0.4.9.17
    One limit per /64 prefix, the block a single host can hold
    Directory authority bastet’s keys removed
    Relay operators: upgrade now
  6. Carnegie Mellon's new CS Learn site posts whole courses that are being taught now, free on YouTube, with a new course premiering each day that week. For anyone building software, the ones to watch are Machine Learning Systems with Tianqi Chen and Zhihao Jia, AI Agents with Daniel Fried and Graham Neubig, and Machine Learning in Production. Probability and Computing and four more follow in January. Phillip Compeau, who runs the site, posted in the thread. For now it is lectures only; self-paced courseware with instant feedback comes next.

    Slide text
    Learning

    Carnegie Mellon puts full semesters of computer science lectures on YouTube

    Machine Learning Systems Tianqi Chen, Zhihao Jia 15-442 · Nov 17
    AI Agents Daniel Fried, Graham Neubig 11-768 · Nov 19
    Machine Learning in Production Christian Kästner, Bogdan Vasilescu 17-645 · Nov 19

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York