OpenCart 2.3–4.1 extension

Supreme Admin Two-Factor Login and Hardening

Adds a second step (a 6 digit code from an authenticator app) to the admin login, stops guessing of passwords, limits who may open the admin and logs out users who are away.

$20
Supreme Admin Two-Factor Login and Hardening — overview

What it does

  • Second step: each admin user can set it up on the module page (key entry or an app link, then one code to confirm). After the password, the user gives a code. 10 one-time recovery codes are shown once. A code cannot be used twice; too many wrong codes log the user out.
  • "Every admin must set it up": a user without it is asked to set it up before any admin page opens.
  • Trusted browser: optionally do not ask again for 1 to 90 days (a signed cookie).
  • Stop after wrong logins: counted per address and per user name (tries and minutes are yours to set). Works on 2.3, 3.0 and 4.x.
  • Address list: only listed addresses (single, range or IPv6) may use the admin; everyone else sees 403. A list that would shut you out is refused.
  • Idle timeout: log a user out after N minutes away.
  • Hardening list on the module page: admin folder name, https, a user called "admin", users without the second step, address list, timeout, login stop.
  • Admin page: numbers for 24 hours and 30 days, the users with their status (reset button), and a security log.
  • The secrets are stored encrypted. They and the log are kept when you uninstall.

What it does not do

  • No QR code: the key is shown to type in, with a link for apps on the same device.
  • The address is the connection address (not X-Forwarded-For): behind a proxy, every visitor may look like one address.
  • It cannot rename the admin folder; it only tells you to.
  • If you lock yourself out: delete the event rows whose code starts with agd_ in the database (or rename the extension folder).

Tested

Installed through the real admin installer on OpenCart 2.3.0.2, 3.0.5.1, 4.0.2.3 and 4.1.0.4 (113 to 118 checks each, 0 failures): code maker checked against the RFC 6238 test values, set up, challenge, replay, recovery codes, lock after wrong codes, trusted browser, the address list, login stop, idle timeout, reset, uninstall and reinstall. The page scripts were not driven in a real browser.

Note

Screenshots are not included yet.

Screenshots

Supreme Admin Two-Factor Login and Hardening — Admin settings part 1
Admin settings part 1
Supreme Admin Two-Factor Login and Hardening — Backend settings
Backend settings

More modules

You May Also Need.

Supreme Bulk Print

Pick as many orders as you like and print a packing slip (A4) or a shipping label (4x6 inch thermal, or A6) for every one of them in one go, with a Code 128 barcode of the order number and the courier's name on each. Nothing is installed in the shop front: it is one admin page, and no theme or core file is changed.

See all OpenCart modules