- Possible attacks
- Case 1: only public files served
- Case 2: using --enable-force-cgi-redirect
- Case 3: setting doc_root or user_dir
- Case 4: PHP parser outside of web tree
This compile-time option prevents anyone from calling PHP directly with a URL like http://my.host/cgi-bin/php/secretdir/script.php. Instead, PHP will only parse in this mode if it has gone through a web server redirect rule.
Usually the redirection in the Apache configuration is done with the following directives:
Action php-script /cgi-bin/php AddHandler php-script .php |
0 Comments:
Post a Comment