Yes. The report shows a real public-exposure problem, not merely a theoretical vulnerability. It specifically confirms /.env and /info.php were publicly accessible and contained credentials. Archman Security Exposure Asses…
The fastest safe fix for archman.us on Apache/Ubuntu is:
1. Immediately block the exposed files/directories
Run as root:
sudo tee /etc/apache2/conf-available/archman-security.conf >/dev/null <<'EOF'
# Block sensitive files
<FilesMatch "^(\.env|info\.php|README\.md)$">
Require all denied
</FilesMatch>
# Block development/configuration directories
<DirectoryMatch "/var/www/html/(\.vscode|\.claude|config|vendor)(/|$)">
Require all denied
</DirectoryMatch>
# Never allow directory listings
<Directory /var/www/html>
Options -Indexes
</Directory>
EOF
sudo a2enconf archman-security
sudo apachectl configtest
sudo systemctl reload apache2
The assessment specifically recommends blocking .env, info.php, .vscode, .claude, /config/, /vendor/, and README.md, while disabling directory indexing. Archman Security Exposure Asses…
2. Remove info.php
sudo rm -f /var/www/html/info.php
Do not just rename it to another .php filename.
3. Move .env outside the web root
sudo mkdir -p /etc/archman
sudo mv /var/www/html/.env /etc/archman/archman.env
sudo chown root:www-data /etc/archman/archman.env
sudo chmod 640 /etc/archman/archman.env
Then change your PHP application so it loads:
instead of:
The report specifically says secrets should be outside /var/www/html, rather than simply renaming them there. Archman Security Exposure Asses…
4. Remove development files from the production tree
sudo rm -rf /var/www/html/.vscode
sudo rm -rf /var/www/html/.claude
If /config is required by the application, do not delete it. The Apache rule above blocks web access while allowing PHP to potentially use it locally.
5. Block Composer metadata
The report confirmed that /vendor/ and vendor/composer/installed.json were public. Archman Security Exposure Asses…
The rule above blocks the entire /vendor/ directory from HTTP access.
6. Rotate the exposed credentials
This is critical. The report's restricted appendix contains actual Stripe, Google OAuth, and SMTP credentials. Archman Security Exposure Asses…
Rotate:
Stripe secret key
Google OAuth client secret
SMTP password/app password
Do not put the old values back into .env.
The report recommends replacing the exposed credentials and only then revoking the old credentials after testing. Archman Security Exposure Asses…
7. Check whether anybody accessed the exposed URLs
Before deleting/rotating anything, preserve the logs:
sudo cp -a /var/log/apache2 /root/apache2-log-backup-$(date +%Y%m%d-%H%M%S)
Then:
sudo grep -RniE '(/\.env|/info\.php|/config/|/\.vscode/|/\.claude/|/vendor/)' \
/var/log/apache2/*.log
The report explicitly says the assessment proves public exposure, but does not establish unauthorized use. That requires log/provider evidence. Archman Security Exposure Asses…
8. Verify externally
From another machine/network:
curl -I https://archman.us/.env
curl -I https://archman.us/info.php
curl -I https://archman.us/.vscode/
curl -I https://archman.us/.claude/
curl -I https://archman.us/config/
curl -I https://archman.us/vendor/
curl -I https://archman.us/vendor/composer/installed.json
curl -I https://archman.us/README.md
You want the sensitive endpoints to return:
or:
while:
curl -I https://archman.us/
continues to return the normal application response.
That is also the report's stated closure criterion. Archman Security Exposure Asses…
Most important: because the uploaded report itself contains the captured credentials, treat those credentials as compromised and rotate them. Don't post the report publicly or send its appendix by email. Archman Security Exposure Asses…