Vulnerability library
Security checkMay 13, 2024

Redirection with Body

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An HTTP redirection (3XX status code) typically does not include a body. However, if a body is present in the redirection response, it indicates that code execution continues after the redirection. This can lead to information leakage or expose access to sensitive functionalities. For instance, an improperly implemented redirection may reveal admin page contents to unauthorized users, compromising security.

Recommendation

To mitigate this risk:

  • Ensure that code execution halts after redirection.
  • In PHP, use exit() or die() after redirection.
  • In ASP.NET, use Response.Redirect("redirected-page.aspx", false) to redirect users without continuing code execution.

References

Could your website be exposed too?

SmartScanner can check your website for Redirection with Body and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024