Skip to content

Commit

Permalink
[1.6.x] Fixed #22504 -- Corrected domain terminology in security guide.
Browse files Browse the repository at this point in the history
Thanks chris at chrullrich.net.

Backport of f65eb15 from master
  • Loading branch information
timgraham committed Apr 25, 2014
1 parent 2b0e9aa commit e9c7843
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/topics/security.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ User-uploaded content
you can take to mitigate these attacks:

1. One class of attacks can be prevented by always serving user uploaded
content from a distinct Top Level Domain (TLD). This prevents any
exploit blocked by `same-origin policy`_ protections such as cross site
scripting. For example, if your site runs on ``example.com``, you would
want to serve uploaded content (the :setting:`MEDIA_URL` setting) from
something like ``usercontent-example.com``. It's *not* sufficient to
content from a distinct top-level or second-level domain. This prevents
any exploit blocked by `same-origin policy`_ protections such as cross
site scripting. For example, if your site runs on ``example.com``, you
would want to serve uploaded content (the :setting:`MEDIA_URL` setting)
from something like ``usercontent-example.com``. It's *not* sufficient to
serve content from a subdomain like ``usercontent.example.com``.

2. Beyond this, applications may choose to define a whitelist of allowable
Expand Down

0 comments on commit e9c7843

Please sign in to comment.