8000 Hacking to enable HTTP auth with PHP-CGI + Apache suExec. by filipesaraiva · Pull Request #13411 · owncloud/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Hacking to enable HTTP auth with PHP-CGI + Apache suExec. #13411

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

Closed
wants to merge 1 commit into from

Conversation

filipesaraiva
Copy link

The hacking was proposed by Matthias Blaicher (http://ur1.ca/jfz9v) to access
owncloud in Webfaction servers. More informations in Webfaction community
support http://ur1.ca/jg37x.

The hacking was proposed by Matthias Blaicher (http://ur1.ca/jfz9v) to access
owncloud in Webfaction servers. More informations in Webfaction community
support http://ur1.ca/jg37x.
@filipesaraiva
Copy link
Author

This pull request is related to issue #10318.

@ghost
Copy link
ghost commented Jan 16, 2015

Thanks a lot for your contribution! Contributions to the core repo require a signed contributors agreement http://owncloud.org/contribute/agreement/ Alternatively you can add a comment here stating that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/

@scrutinizer-notifier
Copy link

The inspection completed: 7 new issues, 1 updated code elements

8000
@@ -841,6 +841,13 @@ protected static function handleAuthHeaders() {
break;
}
}

// Set HTTP auth headers for HTTP Authentication with PHP-CGI
if(isset($_GET['Authorization']) && preg_match('/Basic\s+(.*)$/i', $_GET['Authorization'], $matches)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm honestly against doing some magical hacks that involves parsing all Authorization GET parameters globally in base.php

@LukasReschke
Copy link
Member

That hack should get implemented as own application instead of some magical base.php hack that might very likely lead to problems in other environments.

You should create a new application and add that hack to it's app.php – from my PoV this is nothing that belongs in core.

@DeepDiver1975 DeepDiver1975 added this to the 8.1-next milestone Jan 16, 2015
@mabl
Copy link
mabl commented Jan 20, 2015

Hi,
I'm the guy who wrote the original blog post.

While I think the solution is safe from a security point of view, it's rather invasive for all other deployments which is why I never pursuited to push it upstream.

@LukasReschke Could this actually be done in applications? It would have to modify the way authentication work and also change .htaccess. Without ever having looked into Owncloud apps, I would not have expected them to be that invasive.

Regarding licences: Since most of the solution was already circulating around previously on the net I'd consider it MIT or WTFPL.

Best,
Matthias

@filipesaraiva
Copy link
Author

Hello, I just created the merge request after the request from @DeepDiver1975. Well, is it possible to do it as an app? If yes, please send me some information about app development to owncloud and I will try to do it. Really, I would like stop to apply this patch to each update of my owncloud instance. =) Thanks.

@LukasReschke
Copy link
Member

Let me reply to that later… – It's definitely possible to do that as app.

@MorrisJobke
Copy link
Contributor

ping

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-next, 8.1-current Apr 7, 2015
@ghost
Copy link
ghost commented Apr 30, 2015

Can one of the admins verify this patch?

@MorrisJobke
Copy link
Contributor

Let me reply to that later… – It's definitely possible to do that as app.

@LukasReschke Yes?

@simonv3
Copy link
simonv3 commented Aug 19, 2015

👍 Would love some ideas on how to do this in an app. We could include that here: #10318

@LukasReschke LukasReschke self-assigned this Sep 21, 2015
@DeepDiver1975
Copy link
Member

@LukasReschke will come up with an app to handle this ...

@filipesaraiva
Copy link
Author

Thanks, but please could you ping this bugreport when the app be released?
Cheers!

@filipesaraiva
Copy link
Author

Any news about the app to fix it?
Let me know if I can help with something.

@lock
Copy link
lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0