Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6566)

Issue 235830043: Protect Domado accessors that return feral props directly. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 12 months ago by kpreid_google
Modified:
8 years, 3 months ago
Reviewers:
MarkM
CC:
caja-discuss-undisclosed_googlegroups.com, felix8a, ihab.awad, Jasvir, kpreid2, metaweta, MikeSamuel
Visibility:
Public.

Description

This is a cheap fix for the known issue with <form> elements that should be replaced with a more robust, general solution. Each Domado accessor that simply returned a value from the feral node now coerces it to the expected type first. https://github.com/google/caja/commit/d34290a06cabffa02d7cd509223134ae1d9b2576

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/com/google/caja/plugin/domado.js View 4 chunks +4 lines, -4 lines 2 comments Download

Messages

Total messages: 7
kpreid_google
8 years, 12 months ago (2015-04-30 16:51:57 UTC) #1
MarkM
LGTM https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js#newcode5583 src/com/google/caja/plugin/domado.js:5583: return String(privates.feral.align); For stylistic consistency with the rest ...
8 years, 12 months ago (2015-04-30 17:02:27 UTC) #2
kpreid_google
https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js#newcode5583 src/com/google/caja/plugin/domado.js:5583: return String(privates.feral.align); On 2015/04/30 17:02:26, MarkM wrote: > For ...
8 years, 12 months ago (2015-04-30 17:13:05 UTC) #3
MarkM
On 2015/04/30 17:13:05, kpreid_google wrote: > https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js > File src/com/google/caja/plugin/domado.js (right): > > https://codereview.appspot.com/235830043/diff/1/src/com/google/caja/plugin/domado.js#newcode5583 > ...
8 years, 12 months ago (2015-04-30 17:19:23 UTC) #4
kpreid_google
On 2015/04/30 17:19:23, MarkM wrote: > For stylistic consistency with the rest of Caja, should ...
8 years, 12 months ago (2015-04-30 17:25:26 UTC) #5
MarkM
On 2015/04/30 17:25:26, kpreid_google wrote: > On 2015/04/30 17:19:23, MarkM wrote: > > For stylistic ...
8 years, 12 months ago (2015-04-30 17:30:46 UTC) #6
kpreid_google
8 years, 3 months ago (2016-01-28 18:46:54 UTC) #7
Forwarding here for the record:

On Thu, Jan 28, 2016 at 10:25 AM, Mike Stay <metaweta@gmail.com> wrote:
> How does coercing length, align, frameBorder, and defaultMuted help
> with the form issue?

Coercing .length  on forms prevents <input name="length"> from leaking.
The other properties aren't known security issues because they are specific to
other node types, but these changes make it so we never pass _any_ value
uncoerced to the guest side.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b