Giter Site home page Giter Site logo

duo_wordpress's Introduction

Deprecation Notice

This repository is deprecated by Duo Security. The repository will remain public and visible, and integrations built using this repository’s code will continue to work. You can also continue to fork, clone, or pull from this repository.

However, Duo will not provide any further releases or enhancements.

Duo recommends migrating your application to the Duo Universal Prompt. Refer to our documentation for more information on how to update.

For frequently asked questions about the impact of this deprecation, please see the Repository Deprecation FAQ


Overview

Issues Forks Stars License

duo_wordpress - Duo two-factor authentication for WordPress logins

This WordPress plugin allows you to quickly add Duo's interactive, self-service, two-factor authentication to any WordPress login.

Usage

Documentation: http://www.duosecurity.com/docs/wordpress

Support

Report any bugs, feature requests, etc. to us directly: [email protected]

Have fun!

http://www.duosecurity.com

duo_wordpress's People

Contributors

ojaber avatar davidwilemski avatar ben-duo avatar vbscott avatar aaronatduo avatar mschwager avatar xdesai avatar spacedmonkey avatar mbish avatar adrikim avatar jeffreyparker avatar duokristina avatar lgreerduo avatar yizshi avatar alichator avatar

Stargazers

Noah Halstead avatar Moises Cardona avatar Brendan avatar Amelia Kaufman avatar Tony Ping avatar Lee Peterson avatar Daniel Keer avatar Vinnie Vu avatar Adam Runner avatar  avatar Brian Layman avatar  avatar Chris Cornutt avatar Luke Cavanagh avatar Heath Schweitzer avatar Mike Miller avatar  avatar Stef Pause avatar Adam avatar Emory L. avatar Angus H. avatar Brad Clare avatar David Verdin Zenimax avatar  avatar Paul DeLong avatar Stefan Oderbolz avatar Jon Limitless avatar M Haidar Hanif avatar Richard Aber avatar  avatar Thejesh GN avatar

Watchers

Dug Song avatar Benjamin avatar  avatar Karl Anderson avatar  avatar Jack Wink avatar  avatar James Cloos avatar Jordan Wright avatar  avatar Aaron Pohl avatar  avatar saasfreelancer avatar Connie Qi avatar  avatar Josiah Bruner avatar  avatar Robbie Small avatar  avatar Jake Payton avatar  avatar  avatar  avatar Michael Wright avatar Brendan Lau avatar Joshua King avatar  avatar Zachary Coughlin avatar  avatar Erdenebat Gantumur avatar Vinnie Vu avatar Rohan Bendre avatar  avatar Travis O'Sullivan avatar Anna Nuxoll avatar Denis Revov avatar Jamie Pringle avatar  avatar  avatar  avatar  avatar  avatar  avatar

duo_wordpress's Issues

Unable to login on WordPress Multisite

I am having a serious issue with duo on my multisite. My users are unable to login to anything other than network admin panel.

Here is the issue.

  • Login to network admin i.e example.com
  • Activate DUO.
  • Logout.
  • Go to another WordPress site on network i.e test2.example.com.
  • Login with super admin login
  • Loading message displays, browser redirects to example.com not logged in.

This redirect loop means that I am unable to login any other of my sites.
This issue has already been discussed on WordPress forum and a fix was put in place (6de72e8). This implemented the network_site_url which points the login script to primary site on the network and not the current site that you are on. As my multisite is set to the sub domain configuration, this point the login action to the primary site on the network. Implementing site_url would fix this issue as it point the login script the current site that the user is on. In my tests, this fixed the plugin.

I have forked the plugin and I will be submitting the fix via a pull request soon.

Can't run WP CLI commands properly when DUO is active

When logged in to my server via SSH, the DUO spits out a bunch of HTML error rubbish on the command line when running WP CLI commands.

Reproduce:

  1. Log in over SSH
  2. Run a WP CLI command such as wp plugin list
  3. Many errors are output, including PHP warnings about "cookie names must not be empty", "file_get_contents() SSL operation failed", "file_get_contents(): failed to enable crypto" etc., followed by HTML output of the WordPress login screen (with DUO iframe)

Mitigation?

WP CLI sets a constant called WP_CLI, this is the most common means of determining if a request comes from WP CLI.
So perhaps fixing this is as simple as adding the following to duo_auth_enabled() or duo_role_require_mfa():

if ( defined( 'WP_CLI' ) && WP_CLI ) {
    return false;
}

See WP CLI docs: https://make.wordpress.org/cli/handbook/guides/commands-cookbook/#include-in-a-plugin-or-theme

Can't access REST api endpoints

We are working with a vendor to do an external connection for a WooCommerce store for product recommendations. The DUO plugin is blocking access to the REST API endpoint they are trying to use /wp-json/wc/v3/

It looks like this is another case where an exception needs to be added to the DUO plugin to allow external clients to connect or at least authenticate in some way.

in error case?

HI!
I've a question for you!
In any case of error or other, if I can't login in my wp site, there is an "emergency" login? can I remove the plugin from the server (like remove duo directory) and start my site normally? thank you for your reply (and sorry for my english!).

Duo fails when outbound proxy server is required

When trying to use Duo with a server which requires all outbound connections to go via a proxyserver the connection to fetch the time from /auth/v2/ping causes a timeout.

This then causes it to hang until it gets to use the localtime causing login to take a some time as timeouts occur.

Insecure resource with Chrome and FORCE_SSL_LOGIN

With define('FORCE_SSL_LOGIN', true); set in wp-config.php, duo_wordpress fails to include its Javascript library using SSL. This only seems to be a problem in Chrome (I tested Safari and Chrome), because the second factor auth in Chrome is done from the HTTPS resource, whereas Safari only seems to POST the first factor auth to the HTTPS resource, and then serves the second factor from HTTP.

To reproduce, simply install a vanilla blog, setup duo_wordpress, and add define('FORCE_SSL_LOGIN', true); to wp-config.php. Open your site in Chrome and attempt to login.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.