myron 013b878b87 security: block public access to .git, legacy, dist, extensions, config dirs
Live server audit found orbishosting.com/.git/config directly downloadable
over HTTPS, exposing a plaintext GitHub PAT in the remote URL (docroot ==
git working directory, no deny rule existed). Also found the legacy
SugarCRM install under public_html/legacy (gitignored, not part of this
repo) publicly reachable via /legacy/index.php etc.

Adds a docroot .htaccess (LiteSpeed honors rewrite-based deny rules per
vhost.conf autoLoadHtaccess=1) to 403 all of these paths. This closes the
HTTP exposure only — the leaked GitHub token itself still needs to be
revoked/rotated on GitHub, this fix cannot do that.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 14:18:51 -05:00
2026-05-25 13:51:57 +00:00
S
Description
Mirror of github.com/myronblair/orbishosting
71 KiB
Languages
HTML 65.3%
PHP 34.7%