Closed Bug 941562 Opened 11 years ago Closed 11 years ago

Make the encoding of documents that declare HZ unoverridable

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file)

When a document is encoded in HZ, interpreting it according to another encoding is an XSS hazard. The patch for bug 863728 adds infrastructure that makes it possible to make non-UTF-16 documents ignored the character encoding menu. We should make HZ documents ignore it in order to defend against socially engineered XSS.
Comment on attachment 8336003 [details] [diff] [review] One-line fix & copy-paste test As a side effect, this also makes HZ not inherit into iframes, which is also desirable in the light of its XSS characteristics.
Attachment #8336003 - Flags: review?(VYV03354)
Comment on attachment 8336003 [details] [diff] [review] One-line fix & copy-paste test Let's see what's going on.
Attachment #8336003 - Flags: review?(VYV03354) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: