Login or Logout Menu Item Security & Risk Analysis

wordpress.org/plugins/login-or-logout-menu-item

Add a dynamic "Login" or "Logout" menu item to any WordPress Menu and control redirects.

20K active installs v1.3.0 PHP + WP 6.0+ Updated Jan 6, 2026
dynamicloginlogoutmenumenu-item
100
A · Safe
CVEs total1
Unpatched0
Last CVEAug 7, 2019
Safety Verdict

Is Login or Logout Menu Item Safe to Use in 2026?

Generally Safe

Score 100/100

Login or Logout Menu Item has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Aug 7, 2019Updated 2mo ago
Risk Assessment

The login-or-logout-menu-item plugin v1.3.0 exhibits a generally good security posture based on the provided static analysis. The absence of any identified dangerous functions, raw SQL queries, file operations, or external HTTP requests is a significant strength. Furthermore, the presence of nonce and capability checks, along with the complete use of prepared statements for SQL, indicates a developer's awareness of common WordPress security pitfalls. Taint analysis also reveals no critical or high-severity unsanitized flows, further bolstering confidence in its code quality.

However, there are a few areas of concern that temper an otherwise positive assessment. The fact that 33% of output is not properly escaped is a potential weakness, as it could lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is outputted without sufficient sanitization. While the attack surface is currently zero, this is largely due to the lack of certain features like AJAX handlers or REST API routes, which might be desirable for full functionality. The plugin does have a history of a medium-severity vulnerability (Open Redirect), and while it is currently patched, it suggests that past development practices were not entirely flawless and a single past vulnerability can indicate a need for continued vigilance.

In conclusion, the plugin demonstrates a solid foundation of secure coding practices, especially concerning its interaction with the database and its attack surface management. The main area for improvement lies in ensuring all output is properly escaped to mitigate potential XSS risks. The historical vulnerability, though resolved, serves as a reminder to maintain rigorous security testing and code reviews.

Key Concerns

  • Unescaped output found
  • Past medium vulnerability (Open Redirect)
Vulnerabilities
1

Login or Logout Menu Item Security Vulnerabilities

CVEs by Year

1 CVE in 2019
2019
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2019-15820medium · 6.1URL Redirection to Untrusted Site ('Open Redirect')

Login or Logout Menu Item <= 1.1.1 - Unauthenticated Settings Update

Aug 7, 2019 Patched in 1.2.0 (1630d)
Code Analysis
Analyzed Mar 16, 2026

Login or Logout Menu Item Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
4
8 escaped
Nonce Checks
1
Capability Checks
1
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

67% escaped12 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
lolmi_save_settings (main.php:224)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Login or Logout Menu Item Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 9
actionplugins_loadedmain.php:34
actionadmin_head-nav-menus.phpmain.php:39
filterwp_setup_nav_menu_itemmain.php:100
filterwp_setup_nav_menu_itemmain.php:134
filterlogin_redirectmain.php:144
actionadmin_menumain.php:186
filterrest_request_after_callbacksmain.php:222
actionadmin_initmain.php:242
filterrender_block_core/navigationmain.php:294
Maintenance & Trust

Login or Logout Menu Item Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJan 6, 2026
PHP min version
Downloads224K

Community Trust

Rating96/100
Number of ratings23
Active installs20K
Developer Profile

Login or Logout Menu Item Developer Profile

cartpauj

5 plugins · 32K total installs

78
trust score
Avg Security Score
99/100
Avg Patch Time
1225 days
View full developer profile
Detection Fingerprints

How We Detect Login or Logout Menu Item

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
loginlinksdivlolmi_spacer
HTML Comments
Thanks goes to Juliobox for his work on the BAW Login/Logout Menu plugin on which this is basedThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.Add Login/Logout suggestion to REST API search results. * This works with the Navigation block's link picker.
Data Attributes
data-lolmi-login-page-urldata-lolmi-login-redirect-urldata-lolmi-logout-redirect-url
JS Globals
lolmi_login_page_urllolmi_login_redirect_urllolmi_logout_redirect_url
REST Endpoints
/wp/v2/search
FAQ

Frequently Asked Questions about Login or Logout Menu Item