Project

General

Profile

Actions

Bug #23521

closed

Flash Uploader does not work if cookieHttpOnly is enabled

Added by Oliver Hader over 13 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-09-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The Flash Uploader does not work if the TYPO3_CONF_VARS setting "cookieHttpOnly" is enabled. After uploading a file, the uploader just shows a "303" error.

"303" is a HTTP status code and tells that there was a redirect since the backend user could not be authorized to have access to the TYPO3 backend.

(issue imported from #M15673)


Files

0015673.patch (5.6 KB) 0015673.patch Administrator Admin, 2010-09-09 13:17
0015673_v2_44.patch (4.07 KB) 0015673_v2_44.patch Administrator Admin, 2010-09-09 14:39
0015673_v2_trunk.patch (4.05 KB) 0015673_v2_trunk.patch Administrator Admin, 2010-09-09 14:39
0015673_v2_43.patch (4.4 KB) 0015673_v2_43.patch Administrator Admin, 2010-09-09 14:49
23521_v3_45.diff (1.45 KB) 23521_v3_45.diff Helmut Hummel, 2012-01-15 12:38

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #22185: Flash Uploader not working in FF, SF and Iron when Tortoise SVN is installedClosedSteffen Gebert2010-02-25

Actions
Related to TYPO3 Core - Feature #24647: Enable cookieHttpOnly by defaultClosedChristian Kuhn2011-01-18

Actions
Has duplicate TYPO3 Core - Bug #23419: Flash uploader doesn't work with cookieHttpOnlyClosedOliver Hader2010-08-22

Actions
Has duplicate TYPO3 Core - Bug #24654: Do not enable FlashUploader wenn cookieHttpOnly is setClosedSteffen Gebert2011-01-19

Actions
Actions #1

Updated by Oliver Hader over 13 years ago

Find a first version for TYPO3 4.5 attached...
Still some work needs to be done to define the general concept of the new veriHash (also the name is not optimal yet)...

Actions #2

Updated by Oliver Hader over 13 years ago

Attached new patches that work without changes to the database.
However, I'm not sure whether DBAL can handle "MD5" correctly back in TYPO3_4-3...

Actions #3

Updated by Oliver Hader over 13 years ago

MD5 cannot be handled by DBAL, so we have to store the hash used for looking up records in the database as well (which means, that we cannot have a fix for already released TYPO3 versions). Furthermore it must be ensured that no new cookie will be set (since it transfers the session id in a not wanted scenario).

Actions #4

Updated by Peter Russ over 13 years ago

Patch v2_43 not working neither in IE nor FF. In both browser not upload, HTTP error 303 and logout from BE.

Actions #5

Updated by Janos over 13 years ago

Tested patch 0015673_v2_44.patch
Worked on:
FF 3.6.12
Chrome 7.0.....

For IE 8 i have the old, non js / flash, Upload system!? But I am not shure if this depends on the non, or miss-configured ie.

Actions #6

Updated by Helmut Hummel over 13 years ago

With this patch it is possible to get a valid session by knowing the idHash value. Thus the idHash is the new session id transmitted by GET.

Would be better to create one time tokens instead (like in the new CSRF protection in 4.5)

Actions #7

Updated by Helmut Hummel over 12 years ago

Even better just send the session id as a post value

Actions #8

Updated by Helmut Hummel over 12 years ago

Hm, actually my suggestion is equal to Olly's but just straight forward uses the session id, not a hash of it. But I think that's still OK.

Actions #9

Updated by Steffen Müller about 12 years ago

@Helmut: Any news from Amir about your solution? He promised to give feedback.

Actions #10

Updated by Gerrit Code Review almost 12 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11124

Actions #11

Updated by Gerrit Code Review almost 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11124

Actions #12

Updated by Helmut Hummel almost 12 years ago

Steffen Müller wrote:

@Helmut: Any news from Amir about your solution? He promised to give feedback.

Unfortunately not. However I figured out, why this might not be a good idea to do so :(

The idea of setting http_only to the cookie is to disallow JavaScript access to the cookie, which basically holds the session id.

If we now output it in the HTML, then the id is accessible again through JavaScript which will cancel the http_only protection of the cookie.

I have now no idea any more how to solve this.

Actions #13

Updated by Florian Seirer over 11 years ago

Just an idea (and it may sound silly), and I know this would be more work than just "fixing a bug":

Does the uploader have to rely on Flash? Or is there another, better, HTML5-kind-of way of uploading files to TYPO3?

Actions #14

Updated by Steffen Gebert over 11 years ago

Not silly at all. We have a HTML5 version already in TCEforms. There were also prototypes of plupload available.

Actions #15

Updated by Lorenz Ulrich about 11 years ago

Since the patch was abandoned, I suggest to close this issue as not fixable.

Actions #16

Updated by Steffen Gebert about 11 years ago

  • Status changed from Under Review to Rejected
  • Assignee changed from Oliver Hader to Steffen Gebert
Actions

Also available in: Atom PDF