Security Notes and Known Limitations

Applies to: v5.0.0

This page lists the security settings worth checking after you install web2project, and the known limitations that haven’t been fixed yet, with ways to reduce the risk until they are. Report new problems in the issue tracker.

After installing

Known limitations

Uploaded files are stored inside the web root

Uploaded files are saved in files/ under the web2project folder. The only thing that stops a browser from downloading them directly, without logging in or any permission check, is files/.htaccess. It uses Apache 2.2 syntax, so it does nothing on Apache 2.4 without mod_access_compat, and nginx ignores it entirely.

What to do: add Require all denied for files/ on Apache 2.4, or location ^~ /files/ { deny all; } on nginx. Then check that http://{web2project-install}/files/ returns 403 Forbidden. Logged-in users still get their files through fileviewer.php, which checks permissions. Details are in Server and Database Configuration.

A configurable storage location outside the web root is planned (#394, #395).

Public sign-up is on by default

When Activate External User Creation is on (System Admin → System Configuration), which is the default, anyone can create an account from the login page. The form has its own bot protection: the browser has to solve a small proof-of-work puzzle, a hidden field catches form-filling bots, and a form sent less than 3 seconds or more than an hour after it was shown is refused. It is not a captcha, so a determined script can still get through.

New accounts have no role, so they can’t log in until an administrator assigns one, but each one appears in the Inactive Users list and sends the administrator an e-mail. Sign-up login names may only contain letters and digits. The confirmation e-mail doesn’t include the password.

What to do: turn Activate External User Creation off unless you need self-service sign-up, and create accounts from User Admin instead.

Fixed in v5.0

For the record, v5.0 fixed these security problems. See the release notes for the full list.