Closed Bug 367071 Opened 18 years ago Closed 18 years ago

[SECURITY] mod_perl <Directory> block doesn't let .htaccess work, and doesn't include the blacklists for files that shouldn't be downloaded

Categories

(Bugzilla :: Installation & Upgrading, defect)

2.23.3
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: justdave, Assigned: justdave)

References

Details

(Whiteboard: [doesn't affect 2.22.x or lower][ready for 2.23.4])

Attachments

(1 file)

I can retrieve localconfig from the web, 'nuff said.
Flags: blocking3.0+
I added "AllowOverride All" to the <Directory> block in mod_perl.pl on b.m.o to let the existing .htaccess file work.  This may be more permissions that it needs and the only reason I'm not providing a patch right now, since we need to figure out what the appropriate permissions are here.
Wouldn't "AllowOverride Limit" work? That's what we have in /etc/httpd/conf/httpd.conf.
in the docs you mean?  Guess it would.

We could also block all these files directly in the <Directory> block that mod_perl.pl generates instead of depending on .htaccess at all.
Attached patch Use LimitSplinter Review
Here's the Limit version, basically what I did on b.m.o except change All to Limit.
Assignee: installation → justdave
Status: NEW → ASSIGNED
Attachment #251585 - Flags: review?
(In reply to comment #3)
> in the docs you mean?  Guess it would.

http://www.bugzilla.org/docs/tip/html/configuration.html#http

Docs say so, and that's also what I have in my own httpd.conf.
Comment on attachment 251585 [details] [diff] [review]
Use Limit

Yeah, this is correct. I'm surprised that I missed that. It was working on landfill because the AllowOverride is set on /var/www/html/.
Attachment #251585 - Flags: review? → review+
We should leave this in the approval queue until the release, since it's a real security bug.
Flags: approval?
Not only it's a security bug, but it's a pretty critical one as you can steal the login and password to access the DB. We should release asap.
Summary: mod_perl <Directory> block doesn't let .htaccess work, and doesn't include the blacklists for files that shouldn't be downloaded → [SECURITY] mod_perl <Directory> block doesn't let .htaccess work, and doesn't include the blacklists for files that shouldn't be downloaded
Whiteboard: [doesn't affect 2.22.x or lower][ready for 3.0rc1]
Blocks: 368656
Sounds like a good reason to make sure people run testserver.pl when they upgrade.
Whiteboard: [doesn't affect 2.22.x or lower][ready for 3.0rc1] → [doesn't affect 2.22.x or lower][ready for 2.23.4]
Checking in mod_perl.pl;
/cvsroot/mozilla/webtools/bugzilla/mod_perl.pl,v  <--  mod_perl.pl
new revision: 1.4; previous revision: 1.3
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: approval? → approval+
Security advisory posted, unlocking bug.
Group: webtools-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: