Skip to content Lockpick

Does your site show stack traces or debug output to visitors?

If your live site shows visitors a stack trace, debug output or a detailed error page, turn debug mode off in production, return a generic error and keep the full details in your server logs. Lockpick reports stack traces and error pages it sees in your site's public responses.

What does this check look for, and why does it matter?

Error handling is a part of the overall security of an application. OWASP notes that unhandled errors can assist an attacker in the reconnaissance phase of an attack. In that phase, an attacker tries to gather as much technical information as possible about the target, often name and version properties, such as the application server, frameworks and libraries.

OWASP also says issues at the error handling level can reveal a lot of information about the target and can be used to identify injection points in its features.

Open your own error page and read it the way a stranger would. File paths, line numbers, package names, database messages and environment variable names belong in your logs, not on a public page.

Don't read a stack trace on your site as proof that someone broke in. Fix it because it is cheap to fix.

How serious is a finding?

Every finding in a Lockpick report carries a severity, a verdict and a confidence. Lockpick reports stack traces and error pages at medium or below, because they are real gaps and cheap to close. When other observed evidence completes a bigger story, the report tells that story as an attack chain instead of raising the single finding.

The report lists what to fix by how directly someone could use it, not by the severity label. Its Fix now group means a leaked key, an open database or API, password hashes, or an attack chain we observed. If a stack trace on your site prints a secret key, treat the key as the urgent part.

A finding is confirmed only when the scan observed every part. When a part was inferred rather than seen, the finding is marked needs review and says which part is still open.

How do I check?

Ask your site for something that fails, then read the whole response. These two commands ask Atlas for a page that does not exist and for a note with an id that is not a number, and print each response with its headers.

curl -i https://atlas.example/this-page-does-not-exist
curl -i "https://atlas.example/api/notes?id=not-a-number"

Swap in your own domain and a few of your own routes. Look for file paths, line numbers, framework or package names, database messages and anything that looks like a key. If the answer is a short, plain message, move on to the next route.

Lockpick checks your site from the outside, the way a stranger or an attacker would find it. A Pulse sends at most 12 requests to your site and a Deep scan at most 200. We never send attack payloads, fill in your forms or try passwords. Read how Lockpick checks a site for the full limits.

Check your site

Which fix fits what you see?

What your site showsWhat to do
A stack trace with file paths and line numbers on a public error pageTurn off debug mode for production and serve a plain error page.
An API error whose JSON body holds the exception message or stackCatch errors in one global handler, return a short generic error body and log the details on the server.
A debug page listing environment variables or settingsTurn the debug page off in production, then rotate every secret key it showed with that key's provider.
A development error overlay from your framework on the live siteDeploy a production build, and read the development builds check.
A framework or server version in the error textRemove it from the error page, and read the version banners check.
A short, plain message such as "Something went wrong"Nothing to change for this check. Keep the details in your logs.
A Lockpick error output finding marked needs reviewRepeat the request yourself with curl -i and read the response before you change anything.

How do I fix it?

  1. Turn off debug output in production. Find your framework's debug or development mode setting and your host's environment variables, and make sure production runs with debug off.
  2. Add one global error handler. OWASP's goal for it is that when an unexpected error occurs, a generic response is returned by the application but the error details are logged server side for investigation, and not returned to the user.
  3. Answer API errors without internals. OWASP says an API should use 5xx errors only for requests it cannot fulfill, without content that reveals implementation details, and points to RFC 7807, Problem Details for HTTP APIs, as a document format.
  4. Send full errors where only you can read them. Log the error with its stack to your server logs or error tracker, and keep detailed error pages for local development.
  5. Rotate anything a debug page showed. Removing an exposed key from your site does not revoke it, so rotate it with its provider as well.
  6. Check again. Run your curl commands, then check again in Lockpick. A finding is never marked fixed because a ticket was closed or a task was ticked.

Fix it with your AI

Paste one of these into your builder, with the address and what you saw in your own curl output. Fix security issues with your AI builder has more on working this way.

Fix prompt for Lovable
My live site shows error details to visitors. Here is the address and what it showed: [paste]. Turn off debug mode and detailed error pages for production. Add one error handler for the whole app and for every server function, so an unexpected error returns a short generic message with no stack trace, file path, package name or environment variable. Log the full error on the server only. Keep detailed errors in local development. List every file and setting you changed.
Fix prompt for Bolt
My deployed app shows stack traces or debug output when something fails. Here is the address and the response: [paste]. Make production run with debug and development error pages off. Wrap every API route in one shared error handler that returns a generic error message and logs the full error and stack on the server. Do not change how errors look in local development. Show me each change and the setting that controls it.
Fix prompt for Cursor
Production responses on my site include stack traces or debug details. Example request and response: [paste]. Find where this project sets debug mode, the error page and API error responses for production, including environment variables and host settings. Turn debug output off in production, add a single global error handler that returns a generic message in a problem details style JSON body for API routes and a plain page for browser routes, and send the full error to server logs. Then list any secret keys that appeared in the old error output so I can rotate them.

What does this look like on Atlas?

Atlas, our example app at atlas.example, keeps notes for signed-in users. After a late night fix, its team left debug mode on in production.

The second curl command above returns a server error whose JSON body holds the exception message, a stack trace with server file paths and the name of the database driver. Nothing in it is a key, but it shows a stranger which framework, folders and database Atlas runs.

The team reproduces the error with curl first. The proof you see is written by Lockpick for the kind of finding. It never quotes a secret, a response body or how the scan ran.

Then they work through the steps.

  1. They set the production environment to run with debug off.
  2. They add one error handler that answers every unexpected error with a short "Something went wrong" message.
  3. They send the full error and stack to their error tracker.
  4. They search the old error output for keys and find none, so nothing needs rotating.
  5. They run both curl commands again, get the short message back, and check again in Lockpick.

What can't a check tell you?

Lockpick reads what anyone online can see about your site, within fixed limits, and reports only what it saw. We never sign in to your site, and never look at anything behind a login. Anything a scan couldn't check is marked as not checked, never as passed.

Don't read a clean result as proof that no route on your site ever shows a stack trace. Test the error paths behind your own login, and the odd inputs your forms accept, yourself.

A Lockpick report is not a certificate and not a full penetration test. It covers what that scan could see on that day.

Questions people ask

Is a stack trace on my site urgent?

Lockpick reports stack traces and error pages at medium or below, because they are real gaps and cheap to close. Fix anything that exposes data or keys first. If the trace itself prints a secret key, rotate that key today.

Why doesn't the Lockpick report show me the stack trace?

The proof you see is written by Lockpick for the kind of finding. It never quotes a secret, a response body or how the scan ran. Repeat the request yourself with curl -i and read the response.

Will hiding error details make my app harder to debug?

Not if you log them. OWASP's approach keeps the error details logged server side for investigation while visitors get a generic response. Keep detailed error pages for local development only.

My error page shows a framework version. Is my site vulnerable?

Don't read a version number as proof that your site is vulnerable. Remove it from the error page anyway, and compare that version against your framework's own security notices.

See what your site shows from outside

A quick check reads your homepage the way a visitor would and gives you a score. No account needed.

Check your site

Sources

  1. Error Handling - OWASP Cheat Sheet Series OWASP Cheat Sheet Series, read on December 2, 2026
  2. How we check · Docs · Lockpick Lockpick docs, read on November 4, 2026
  3. How we rate findings · Docs · Lockpick Lockpick docs, read on December 2, 2026
  4. What we never do · Docs · Lockpick Lockpick docs, read on October 29, 2026

About the author

I'm Mark, founder of Lockpick. These pages are drafted with AI and checked against their cited sources before publication. The Updated date changes only when the page itself does.