You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RDKB-65516 : WebUI - SSO - Local LAN Bypass - #218
Dead nested guard drops dedicated MSO unauthorized handling
source/Styles/xb3/jst/check.jst:167
This new outer guard makes the immediately nested if ($iface == "lan_ip" || $iface == "docsis_ip") impossible to enter. Consequently, MSO attempts on those interfaces now fall through to the generic username-failure path, so the dedicated unauthorized-attempt audit log and response are silently lost. Please either retain an outer MSO-only guard and branch by interface inside it, or remove the dead branch if the generic path is intentional.
The outer condition guarantees $iface == "cm_ip", so the immediately nested lan_ip/docsis_ip rejection can never execute. Remove the contradictory dead branch so the access policy has one unambiguous condition.
Restricting this branch to cm_ip rejects valid mso logins classified as rm_ip or eth_ip before they can reach the OAuth flow. Those interface types were previously accepted by this branch (the existing interface check only rejects LAN/RG/DOCSIS access), and the new LAN bypass already occurs in if_type only when the submitted username is admin, so this extra condition is not needed for the bypass. Keep routing every mso login through the existing interface authorization checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for change: WebUI - SSO - Local LAN Bypass
Test Procedure: Test for WebUI access
Risks: Low
Priority: P1