[CKAN-Security] HTML file upload issue
ross at servercode.co.uk
Wed Oct 15 12:11:40 UTC 2014
This is probably worse than it might appear to be, because even being in an iframe users are not protected by the Same Origin policy (as it has the same origin).
I’m not particularly au-fait with the storage code (although I did merge the extension in a while back) - Is setting Content-disposition for every resource the right thing to do? Can it be removed entirely for 2.3?
On 15 Oct 2014, at 12:37, Ilja Pyykkönen <ilja.pyykkonen at gofore.com> wrote:
> Dear CKAN,
> Seems that you can upload HTML files to CKAN and CKAN happily serves those files.
> This of course allows injecting scripts and using it in user context.
> There is commented code that would "fix" this issue, but it is not in use.
> This problem also occurs in resource preview.
> Also, seems that HttpOnly is not set for cookies either so you can use this method to steal users session.
> Best regards,
> CKAN security
More information about the Security