UI misrepresentation in WebOTP (CVE-2026-106282)
The WebOTP component on Android fails to strip bidirectional control characters from the extracted SMS one-time code, and origin formatting lacks BiDi isolation. An attacker could send an SMS containing a right-to-left override character so that a trusted notification visually reverses the origin label, potentially misleading the user into approving the code for a malicious site.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The WebOTP component on Android fails to sanitize bidirectional (BiDi) control characters in the extracted SMS code. This allows an attacker to visually manipulate or reverse the origin label displayed in trusted browser UI prompts and notifications.
Affected files:
content/browser/sms/sms_parser.cccomponents/url_formatter/elide_url.ccui/base/l10n/l10n_util.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
A potential visual spoofing vulnerability exists in the WebOTP (SMS Receiver) flow on Android. The issue stems from a lack of sanitization of the one-time code (OTP) combined with missing BiDi isolation in origin formatting.
Technical Details
-
Parsing Flaw: In
content/browser/sms/sms_parser.cc, the regular expression used to extract the OTP is#([^#\s]+). The RE2\scharacter class matches only ASCII whitespace. Consequently, Unicode bidirectional control characters, such as the Right-to-Left Override (RLO,U+202E), are permitted to remain in the captured OTP string. -
Missing Isolation: When formatting the origin for display,
url_formatter::FormatOriginForSecurityDisplay(incomponents/url_formatter/elide_url.cc) does not wrap the resulting string in Unicode BiDi isolation characters (FSIU+2068and PDIU+2069). -
Android-Specific Context: On most platforms, Chrome uses
l10n_util::AdjustParagraphDirectionalityto protect UI strings. However, this function is currently compiled out for Android inui/base/l10n/l10n_util.cc(line 347). This leaves Android UI components, such as notifications and messages, vulnerable to directionality overrides within a single string.
Impact
When the un-sanitized OTP is interpolated into a localized UI template (e.g., IDS_SMS_FETCHER_NOTIFICATION_TITLE_SIMPLE_STRING: 'Submit $1 to $2?'), an attacker-controlled RLO character at the end of the OTP ($1) will cause the subsequent text, including the origin label ($2), to be rendered in reverse visual order.
For example, if the attacker's domain is live.elpmaxe and they send an OTP ending in an RLO, the trusted notification may visually render the origin as evil.example, misleading the user into approving the code for a malicious site.
Potential Reproduction Steps
Note: These steps are theoretical as the environment does not support code execution.
- Register a domain that is the visual reverse of a target (e.g.,
live.elpmaxeforevil.example). - Navigate to the malicious site and trigger a WebOTP request via
navigator.credentials.get. - Send an SMS to the device with the line:
@live.elpmaxe #123456\u202E. - Observe the resulting Chrome notification or prompt. Due to the RLO character, the origin label
live.elpmaxewill be reversed, potentially appearing aselpmaxe.evilor similar depending on the surrounding characters and template.
Proposed Fix
- Sanitize the extracted OTP string in
SmsParserby stripping Unicode bidirectional control characters (category Cf) and printable line separators. - Update
url_formatter::FormatOriginForSecurityDisplayto ensure all formatted origins are wrapped in BiDi isolation characters (FSI/PDI). - Evaluate the impact of enabling
AdjustParagraphDirectionalityfor the Android platform.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the OTP extraction regex only treats ASCII whitespace as a separator, so Unicode bidirectional control characters survive in the code, and the origin formatter does not wrap the origin in BiDi isolation characters, while Android also compiles out the paragraph-directionality adjustment.
Impact
The trusted notification may visually render the origin in reverse order, which could mislead the user into approving the code for a malicious site; the report notes the reproduction steps are theoretical and were not executed.
What the attacker needed
Android device with Chrome; Attacker can send SMS to victim; Victim visits malicious site; Attacker registers reversed domain
The fix
The extracted OTP should be sanitised by stripping Unicode bidirectional control characters, origin formatting should wrap origins in BiDi isolation characters, and enabling the paragraph-directionality adjustment on Android should be evaluated.
How it was found
- Register a domain that is the visual reverse of a target domain.
- Navigate to the malicious site and trigger a WebOTP request.
- Send an SMS to the device containing the reversed domain and an OTP ending with a right-to-left override character.
- Observe the Chrome notification or prompt, where the origin label appears reversed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a website asks for a one-time code sent by SMS, Chrome shows a notification with the code and the website's address. This report says that if the SMS contains a special invisible character that flips text direction, the website address in that notification can appear backwards, so a fake address might look like a real one. The user could then approve the code for the wrong site.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.