Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Changes (Step 4) #1275

Merged
merged 4 commits into from
Jan 2, 2018
Merged

Security Changes (Step 4) #1275

merged 4 commits into from
Jan 2, 2018

Conversation

aschempp
Copy link
Member

@aschempp aschempp commented Dec 29, 2017

  • Correctly trigger the Symfony authentication entry point
  • Bypass RememberMe Token update in header replay mode
  • Update unit tests

@aschempp
Copy link
Member Author

@Toflar we currently have to bypass the remember token update because the response of the header replay is not processed. We should discuss whether the cookies of a header replay response should be processed and appended to the actual request.

@leofeyer leofeyer added the bug label Dec 29, 2017
@leofeyer leofeyer added this to the 4.5.1 milestone Dec 29, 2017
@leofeyer
Copy link
Member

Checking for the T42-Replay-Headers content type is certainly not the correct solution, because it would not work with Varnish.

I think that our approach with stopping event propagation in the preflight request is wrong (see terminal42/header-replay-bundle@7da33c3). It will prevent the response listeners from running, one of which adds the updated remember me cookie from the request attributes to the response.

We should therefore discuss a different solution for #1009 and other related issues. Maybe we should not execute certain listeners upon HEAD requests?

@leofeyer leofeyer merged commit 1336d1c into contao:4.5 Jan 2, 2018
@leofeyer
Copy link
Member

leofeyer commented Jan 2, 2018

Thank you @aschempp.

@ghost
Copy link

ghost commented Jan 2, 2018

A new issue thereto has been created at #1280.

@ghost ghost mentioned this pull request Jan 2, 2018
leofeyer added a commit to contao/manager-bundle that referenced this pull request Jan 2, 2018
leofeyer added a commit to contao/manager-bundle that referenced this pull request Jan 2, 2018
@aschempp aschempp deleted the bugfix/security4 branch April 3, 2018 12:32
@leofeyer leofeyer modified the milestones: 4.5.1, 4.5 May 14, 2019
leofeyer pushed a commit that referenced this pull request Feb 7, 2020
Description
-----------

If you use Contao just as a bundle (unmanaged edition, see https://docs.contao.org/dev/getting-started/initial-setup/symfony-application/), you won't get redirected to the login screen if you access the preview url unauthenticated.

As the preview is a feature of the core-bundle, this PR moves the according authentication listener from the manager-bundle to the core-bundle.

Commits
-------

f4e54950 Version 4.8.7

Description
-----------

Fixes #1108

Commits
-------

447da7ff Fix the picture_default.html5 template (see #1108)
bd35ffc3 Moved the PreviewAuthenticationListener to the core-bundle
2e4011d1 Fix namespace copy pasta
6f230b47 Merge branch '4.9' of github.com:bytehead/contao into bugfix/move-previewauthenticationlistener
ff486ca8 Remove merge leftover
591fe9af Fix definition
64204688 Fix tests
df7412bd Move extension test
1e30def0 CS fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants