X-Content-Type-Options and Content-Disposition on user uploads
Say a user uploads an HTML file called photo.png. A browser that sniffs content types will render it, with your origin's cookies attached.
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="photo.png"Serving uploads from a separate domain is better still. If they share yours, these two headers are the minimum.
securityhttp