Open Bug 1804261 Opened 2 years ago Updated 2 years ago

Perform early partial JavaScript validation for ORB

Categories

(Core :: DOM: Networking, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: farre, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [orb:m2][necko-triaged])

JS validation is the catch-all of all data coming through the ORB safelist check, and it's supposed to block not just JSON, but also all other incoming data not parsable as JavaScript, e.g. a font file, some random huge ISO and so on.

By doing an early check for failure, we can block a malicious site ("http://evil.site") from doing a huge Window.fetch("http://lawful.site/path-to-a-huge.iso", {mode: "no-cors"}), probably on the first OnDataAvailable. This way we'll decrease network traffic for the user, as well as saving CPU-cycles, and also prevent evil.site from DDoS'ing lawful.site.

Depends on: 1532644
Blocks: 1805228
Whiteboard: [orb:m2] → [orb:m2][necko-triaged]
Priority: -- → P3
Severity: -- → N/A
Whiteboard: [orb:m2][necko-triaged] → [orb:m2][necko-triaged][sp3]
Whiteboard: [orb:m2][necko-triaged][sp3] → [orb:m2][necko-triaged]
You need to log in before you can comment on or make changes to this bug.