Page MenuHomeMiraheze

Lock down sql.php to only be able to access wiki's
Closed, ResolvedPublic

Description

We found out today that sql.php can access all dbs from db4 thus a security risk.

We need to lock it down so it can only access wiki dbs

Event Timeline

Paladox raised the priority of this task from High to Unbreak Now!.Jul 31 2018, 15:37
Paladox changed the edit policy from "Custom Policy" to "Custom Policy".
Paladox changed the edit policy from "Custom Policy" to "Custom Policy".

Dropping of course does not work, but accessing any db that is not meant for mw-admins (such as phabricator_*, icinga, etc.) can be done via the SQL.php prompt

tables can also be created.

Reception123 lowered the priority of this task from Unbreak Now! to High.Jul 31 2018, 15:46

We have changed it to root only for now, but mw-admins should still be able to use sql.php so we should find another solution.

I have locked down sql.php on mw* by chown root:root sql.php and chmod 0400 sql.php.

Okay, can access - but can't use.

This is an overreaction and not a security issue. I'd like people to verify however first.

John claimed this task.

Done a minor change but this was never a security issue.

John changed the visibility from "Custom Policy" to "Public (No Login Required)".Jul 31 2018, 18:31
John changed the edit policy from "Custom Policy" to "All Users".
John removed a project: acl*security.