Univention Bugzilla – Bug 43830
Remove publicly visible CGI script
Last modified: 2021-04-12 14:43:48 CEST
<http://ucs-sso.$FQDN/saml/php-cgi> maps to /var/www/saml/php-cgi. There is no need to make 'ScriptAlias' directories publicly visible; this is considered very bad practice and can be a security risk.
Somehow we couldn't find a working way in UCS 4.1 not exposing it. If you have one tell me.
The problem is that we need suexec to force simplesamlphp via php5-cgi to be executed as a different user than www-data.
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
This still is an unfixed security issue.
The use of binary package `apache2-suexec-pristine` requires the CGI script to be installed below /var/www/. Using `apache2-suexec-custom` instead would allow this to be configured. This is one of the reasons why Debian switched to exporting /var/www/html/ instead so other files can be placed below /var/www/ without exposing them, but UCS never picked that up that change. Switching to `php-fpm` would also solve this issue, see Bug #48042 for that.