Mailing List Archive

[Bug 66341] mod_proxy_ftp documentation says it supports user/pass. Error AH02422 says it does not
https://bz.apache.org/bugzilla/show_bug.cgi?id=66341

Christophe JAILLET <christophe.jaillet@wanadoo.fr> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #1 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
Hi,

I don't known mod_proxy_ftp that much, but looking at the code, could you have
a try with:
HttpProtocolOptions unsafe

?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 66341] mod_proxy_ftp documentation says it supports user/pass. Error AH02422 says it does not [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=66341

--- Comment #2 from briandking@gmail.com ---
That did work, but reading the documentation on what that option does:

https://httpd.apache.org/docs/2.4/mod/core.html#httpprotocoloptions

I don't see any hints there about why it would be required for an ftp URL that
looks like it meets the standards for a URL?
That option seems to be about allowing non standard (and potentially unsafe)
URLs to pass parsing rules?

Is basic authentication supplied in the URL now blocked by default for other
protocols as well?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 66341] mod_proxy_ftp documentation says it supports user/pass. Error AH02422 says it does not [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=66341

Christophe JAILLET <christophe.jaillet@wanadoo.fr> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW

--- Comment #3 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
Thanks for testing.

I think that the relevant part is in RFC 7230 ([1]) cited in the
HttpProtocolOptions documentation:

> Userinfo (i.e., username and password) are now disallowed in HTTP and
> HTTPS URIs, because of security issues related to their transmission
> on the wire. (Section 2.7.1)

Anyway, IMHO, it should be stated explicitly in the doc, at least where
username:password@ is useable.



> Is basic authentication supplied in the URL now blocked by default for other
> protocols as well?

I guess so. [2] is part of the standard URI handling.
I'll give it a try with our test framework to confirm.



[1]: https://www.rfc-editor.org/rfc/rfc7230#appendix-A.2
[2]:
https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/server/protocol.c?view=markup#l970

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 66341] mod_proxy_ftp documentation says it supports user/pass. Error AH02422 says it does not [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=66341

--- Comment #4 from briandking@gmail.com ---
This is probably a bigger discussion than this bug report, but it seems like a
single on/off switch (HttpProtocolOptions) is not a great way to enable/disable
so many options.
I can definitely see only wanting to be able to allow usernames/passwords in
URLs, without also wanting to have to allow all the other security issues
mentioned in RFC 7230. In fact I'd like to be able to enable it just for FTP
given that is hardly ever required for http(s) anymore.

It's probably worth pointing out that RFC 7230 section 2.7.1 is specifically
about http(s) URIs as well and doesn't mention ftp URIs. HTTP has other
authentication options available and most sites have moved away from basic
auth, so it does make sense to drop the basic auth user/password support from a
forward proxy for http(s).

FTP however still requires a username and password in most cases (except
anonymous). If an FTP URI is being passed through a forward proxy with a
username/password it seems more likely that those credentials would be required
rather than an attempt to obfuscate the URI. Yes FTP is insecure but it is
still used and does require credentials to be passed.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org