Securing FOSSBilling
This guide is incomplete. Please help us complete it using the "Edit this page" button in the sidebar. Thanks!
Configuration
FOSSBilling comes with security features enabled and set to their maximum options by default. These options can be adjusted to be more relaxed, but it is recommended to keep them at their default values.
Security Options
-
Security Mode:
- Default:
strict - Options:
strict:- Cookies are only sent over a secured connection (HTTPS)
- Cookies have the
samesiteoption set to 'strict' - Cookies are marked as
httpOnly
regular: Allows HTTP connections and uses the default cookie settings for your server.
- Configuration: Set the option
modein theconfig.phpfile.
- Default:
-
HTTPS Redirection:
- Default:
true - Options:
trueorfalse - Configuration: Set the option
force_httpsin theconfig.phpfile.
- Default:
-
Cookie Lifespan:
- Default:
7200seconds (2 hours) - Configuration: Set the option
cookie_lifespanin theconfig.phpfile to the desired maximum lifespan of cookies in seconds.
- Default:
API Options
- CSRF Prevention:
- Default:
true - Options:
trueorfalse - Configuration: Set the option
CSRFPreventionin theconfig.phpfile.- Note: Disabling this protection is not recommended and opens your instance to a known vulnerability. This option is only here for backwards compatibility.
- Default:
Hosting Environment
These documents are incomplete, if you have suggestions, we'd appreciate a pull request on our GitHub account.
- Ensure you have a valid SSL certificate configured on your web server with the latest version of TLS enabled.