Open your site in a browser, press F12 and look at the response headers of any page. Do they say what software and version your server runs? Do the error pages show a stack trace? Does a folder URL list the files inside it? These small leaks help someone plan an attack, and they are easy to remove.
Three things to look for
1. Version headers. Headers like X-Powered-By: Express, Server: nginx/1.18.0 or a framework version tell a stranger which known bugs may apply. They are not a vulnerability alone. They save an attacker time.
2. Directory listing. If a web server has no index file for a folder, some setups show a list of every file in it. Try the folders your app serves files from, such as /uploads/, /assets/ and /static/. A list of files means listing is on.
3. Verbose errors. An error page that shows a stack trace, file paths, a SQL error or a framework debug screen reveals how your app is built. Trigger a harmless 404 and a bad request on your own site and read what comes back.
How to check your own site
- In the Network tab, click the main document and read the response headers. Note
Server,X-Powered-Byand any version numbers. - Visit a made-up path such as
/does-not-exist-123. Is the page a plain, short 404? - Visit your upload and asset folders without a file name. Do you get a list?
- Send a request your API does not expect, such as bad JSON, to your own endpoint. Check the error body.
Fixes
- Remove
X-Powered-By. In Express, callapp.disable("x-powered-by"), or use a security headers package. - Hide the server version in your web server or CDN settings.
- Turn off directory listing. In nginx, make sure
autoindexis off. On static hosts, keep anindex.htmlin folders or use the host's setting. - Run in production mode. Turn off debug pages and return short error messages with an id for your own logs.
- Check again after each deploy. Defaults come back when config files are replaced.
Check the outside view
I work on ProofForge. The free scan checks the public side of a URL you own or have permission to test: browser bundle, public files, headers and supported backend signals. It never signs in. A clean result means nothing was found in the public assets checked, not that the app is secure.
Run the free scan on the live URL. Run the free ProofForge scan. No account needed. Only scan apps you own or have permission to test. More guides: the index.
Top comments (0)