Skip to content

Commit

Permalink
BUGFIX Disallow web access to sapphire/silverstripe_version to avoid …
Browse files Browse the repository at this point in the history
…information leakage (from r114773)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@114774 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu authored and Sam Minnee committed Feb 2, 2011
1 parent 397bbe7 commit 872e188
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htaccess
Expand Up @@ -3,4 +3,7 @@
</FilesMatch> </FilesMatch>
<FilesMatch "(main|static-main|rpc)\.php$"> <FilesMatch "(main|static-main|rpc)\.php$">
Allow from all Allow from all
</FilesMatch>
<FilesMatch "silverstripe_version$">
Deny from all
</FilesMatch> </FilesMatch>
11 changes: 11 additions & 0 deletions web.config
@@ -0,0 +1,11 @@
<configuration>
<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<add segment="silverstripe_version" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>

0 comments on commit 872e188

Please sign in to comment.