WordPress unsafe redirect for login

Published on 26 Jun 2018
Vulnerability

Open Redirect is a vulnerability by which a web application fails to authenticate URLs. This will lead to attackers directing the end users to malicious sites to extract information. The older versions of WordPress had redirection loop vulnerability. If the WordPress is forced to redirect to HTTPS, the server will cause redirection loop in the login page. The best way to fix this vulnerability is to Force Secure Sockets Layer Login as true. Force Secure Sockets Layer Admin is set as true by default in old WordPress version.

Example

        <?php
        wp_safe_redirect( $location, $status );
        exit;
        ?>

    

Impact

The impact include:-

  • The attacker can steal information from end-users
  • The attacker can persue the end-user into downloading malicious files

Impact and Fixes

Jijith Rajan
Written by
Cyber Security Engineer

His passion for staying abreast of the latest security threats and trends, coupled with his hands-on experience, allows him to actively contribute to the protection of digital assets. Jijith's dedication and enthusiasm make him a promising talent in the ever-evolving realm of cybersecurity, promising a safer digital future.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo