From 4c5428364231ee28c5bb77a813f4981bfa1a5b2b Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 26 Dec 2006 04:09:23 +0000 Subject: [PATCH] Fix a few things in the YouTube documentation as mentioned by Everah and kuza55 (sorry kuza55, still haven't acted completely on your requests). git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@619 48356398-32a2-884e-a903-53898d9a118a --- docs/enduser-youtube.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/enduser-youtube.html b/docs/enduser-youtube.html index c91fd760..3e363267 100644 --- a/docs/enduser-youtube.html +++ b/docs/enduser-youtube.html @@ -26,9 +26,9 @@ content in their pages is something that a lot of people like.

you will definitely be slammed by a manner of nasties that can be embedded in things from your run of the mill Flash movie to Quicktime movies. -Allowing users to tell the browser to load content from other websites -is intrinsically dangerous: there already security risks associated with -letting users include images from other sites!

+Even img tags, which HTML Purifier allows by default, can be +dangerous. Be distrustful of anything that tells a browser to load content +from another website automatically.

Luckily for us, however, whitelisting saves the day. Sure, letting users include any old random flash file could be dangerous, but if it's @@ -147,13 +147,18 @@ the user's operating system/browser. You need to either cap it by limiting the amount of digits allowed in the regex or using a callback to check the number.

-

Trusts YouTube's security

+

Trusts media's host's security

By allowing this code onto our website, we are trusting that YouTube has tech-savvy enough people not to allow their users to inject malicious -code into the Flash files. An exploit on YouTube means an exploit on your -site, and when you start allowing shadier sites, remember that trust -is important.

+code into the Flash files. An exploit on YouTube means an exploit on your +site. Even though YouTube is run by the reputable Google, it +doesn't +mean they are +invulnerable. +You're putting a certain measure of the job on an external provider (just as +you have by entrusting your user input to HTML Purifier), and +it is important that you are cognizant of the risk.

Poorly written adaptations compromise security