Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Caja project

From Wikipedia, the free encyclopedia
Google project for sanitizing third party HTML, CSS and JavaScript

Caja (pronounced/ˈkɑːhɑː/KAH-hah)[1] was aGoogle project forsanitizing third partyHTML,CSS, andJavaScript. On January 31, 2021, Google archived the project due to known vulnerabilities and lack of maintenance to keep up with the latest web security research, recommending instead theClosure toolkit.[2]

The Caja project was led by Jasvir Nagra with the JavaScript portion designed by Google research scientistMark S. Miller in 2008[3][4] as a JavaScript implementation for "virtual iframes" based on the principles ofobject-capabilities. It would takeJavaScript (technically,ECMAScript 5 strict mode code),HTML, andCSS input and rewrite it into a safe subset of HTML and CSS, plus a single JavaScript function with nofree variables. That means the only way such a function could modify an object, was if it was given areference to the object by the host page. Instead of giving direct references toDOM objects, the host page typically gives references to wrappers that sanitize HTML, proxyURLs, and prevent redirecting the page; this allowed Caja to prevent certainphishing andcross-site scripting attacks, and prevent downloadingmalware. Also, since all rewritten programs ran in the same frame, the host page could allow one program to export an object reference to another program; then inter-frame communication was simply method invocation.

The word "caja" is Spanish for "box" or "safe" (as in a bank), the idea being that Caja could safely contain JavaScript programs as well as being acapabilities-basedJavaScript.

Caja was used byGoogle in itsGoogle Apps Script[5] products. In 2008MySpace[6][7] andYahoo![8] had both deployed a very early version of Caja.

See also

[edit]

References

[edit]
  1. ^Miller, Mark (10 October 2007)."[e-lang] [cap-talk] Caja discussion on the Caplet Group".EROS-OS.org. Archived fromthe original on 17 May 2008.
  2. ^"Introduction - Caja".Google Developers.Archived from the original on 22 January 2021.
  3. ^Miller, Mark S.; Samuel, M.; Laurie, B.; Awad, I.; Stay, M. (7 June 2008)."Safe active content in sanitized JavaScript".Google Scholar.
  4. ^Synodinos, Dio (25 February 2011)."ECMAScript 5, Caja and Retrofitting Security, with Mark S. Miller".InfoQ.
  5. ^"Html Service: Caja Sanitization".Google Developers. Archived fromthe original on 26 August 2013.
  6. ^"MySpace: Caja JavaScript scrubbing ready for prime time". 4 February 2008. Archived fromthe original on 1 October 2008.
  7. ^"Web 2.0 Investors: Pay Attention To Caja".Tim Oren's Due Diligence. 11 April 2008.
  8. ^Pullara, Sam (28 October 2008)."OpenSocial API Blog: Launched: Yahoo!'s First Implementation of OpenSocial Support".OpenSocial. Archived fromthe original on 16 December 2008.

External links

[edit]
Look upcaja#Spanish in Wiktionary, the free dictionary.
Concepts
Operating systems,
kernels
Programming languages
File systems
Specialised hardware
Dialects
Engines
Frameworks
Client-side
Server-side
Multiple
  • Cappuccino
Libraries
People
Other
a subsidiary ofAlphabet
Company
Divisions
Subsidiaries
Active
Defunct
Programs
Events
Infrastructure
People
Current
Former
Criticism
General
Incidents
Other
Software
A–C
D–N
O–Z
Operating systems
Machine learning models
Neural networks
Computer programs
Formats and codecs
Programming languages
Search algorithms
Domain names
Typefaces
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
Y
Hardware
Pixel
Smartphones
Smartwatches
Tablets
Laptops
Other
Nexus
Smartphones
Tablets
Other
Other
Advertising
Antitrust
Intellectual
property
Privacy
Other
Related
Concepts
Products
Android
Street View coverage
YouTube
Other
Documentaries
Books
Popular culture
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Caja_project&oldid=1305505698"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp