CodeAnt AI home pagelight logodark logo
  • Dashboard
  • Dashboard
  • Documentation
  • Demo Call with CEO
  • Blog
  • Slack
  • Get Started
    • CodeAnt AI
    • Setup
    • Control Center
    • Pull Request Review
    • IDE
    • Compliance
    • Anti-Patterns
    • Code Governance
    • Infrastructure Security Database
    • Application Security Database
      • Apex
      • Bash
      • C
      • Clojure
      • Cpp
      • Csharp
      • Dockerfile
      • Elixir
      • Fingerprints
      • Generic
      • Go
      • Html
      • Java
      • Javascript
        • Ajv
        • Angular
        • Apollo
        • Argon2
        • Audit
        • Aws-lambda
        • Axios
        • Bluebird
        • Browser
          • Decoded-xss
          • Open-redirect-pathname
          • Open-redirect
            • Open redirect
          • Security
          • Tainted-redirect
          • Xss
        • Chrome-remote-interface
        • Crypto
        • Deno
        • Express
        • Fbjs
        • Firebase
        • Grpc
        • Intercom
        • Jose
        • Jquery
        • Jsonwebtoken
        • Jssha
        • Jwt-simple
        • Knex
        • Lang
        • Monaco-editor
        • Mongodb
        • Mongoose
        • Mssql
        • Mysql
        • Node-expat
        • Passport-jwt
        • Pg
        • Phantom
        • Playwright
        • Puppeteer
        • React
        • Sandbox
        • Sax
        • Sequelize
        • Serialize-javascript
        • Shelljs
        • Superagent
        • Thenify
        • Vm2
        • Vue
        • Wkhtmltoimage
        • Wkhtmltopdf
        • Xml2json
      • Json
      • Kotlin
      • Ocaml
      • Php
      • Problem-based-packs
      • Python
      • Ruby
      • Rust
      • Scala
      • Solidity
      • Swift
      • Terraform
      • Typescript
      • Yaml
    Open-redirect

    Open redirect

    The application builds a URL using user-controlled input which can lead to an open redirect vulnerability. An attacker can manipulate the URL and redirect users to an arbitrary domain. Open redirect vulnerabilities can lead to issues such as Cross-site scripting (XSS) or redirecting to a malicious domain for activities such as phishing to capture users’ credentials. To prevent this vulnerability perform strict input validation of the domain against an allowlist of approved domains. Notify a user in your application that they are leaving the website. Display a domain where they are redirected to the user. A user can then either accept or deny the redirect to an untrusted site.
    Likelihood: HIGH
    Confidence: HIGH
    CWE:
    - CWE-601: URL Redirection to Untrusted Site (‘Open Redirect’)
    OWASP:
    - A01:2021 - Broken Access Control

    Open redirect pathnameSecurity
    twitterlinkedin
    Powered by Mintlify
    Assistant
    Responses are generated using AI and may contain mistakes.