VYPR
Moderate severityNVD Advisory· Published May 25, 2023· Updated Nov 3, 2025

CVE-2023-28370

CVE-2023-28370

Description

Open redirect vulnerability in Tornado versions 6.3.1 and earlier allows a remote unauthenticated attacker to redirect a user to an arbitrary web site and conduct a phishing attack by having user access a specially crafted URL.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
tornadoPyPI
< 6.3.26.3.2

Affected products

1

Patches

1
32ad07c54e60

web: Fix an open redirect in StaticFileHandler

https://github.com/tornadoweb/tornadoBen DarnellMay 14, 2023via ghsa
1 file changed · +9 0
  • tornado/web.py+9 0 modified
    @@ -2879,6 +2879,15 @@ def validate_absolute_path(self, root: str, absolute_path: str) -> Optional[str]
                 # but there is some prefix to the path that was already
                 # trimmed by the routing
                 if not self.request.path.endswith("/"):
    +                if self.request.path.startswith("//"):
    +                    # A redirect with two initial slashes is a "protocol-relative" URL.
    +                    # This means the next path segment is treated as a hostname instead
    +                    # of a part of the path, making this effectively an open redirect.
    +                    # Reject paths starting with two slashes to prevent this.
    +                    # This is only reachable under certain configurations.
    +                    raise HTTPError(
    +                        403, "cannot redirect path with two initial slashes"
    +                    )
                     self.redirect(self.request.path + "/", permanent=True)
                     return None
                 absolute_path = os.path.join(absolute_path, self.default_filename)
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.