CWEweakness
CWE-1007 Insufficient Visual Distinction of Homoglyphs Presented to User
Medium
Official page ↗
- Alternate terms
- Homograph Attack
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- Medium
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product displays information or identifiers to a user, but the display mechanism does not make it easy for the user to distinguish between visually similar or identical glyphs (homoglyphs), which may cause the user to misinterpret a glyph and perform an unintended, insecure action.
Extended description
Adversaries can exploit this visual similarity for attacks such as phishing, e.g. by providing a link to an attacker-controlled hostname that looks like a hostname that the victim trusts. In a different use of homoglyphs, an adversary may create a back door username that is visually similar to the username of a regular user, which then makes it more difficult for a system administrator to detect the malicious username while reviewing logs.
Common consequences
• Integrity, Confidentiality: Other, Varies by Context, Hide Activities — An attacker may ultimately redirect a user to a malicious website, by deceiving the user into believing the URL they are accessing is a trusted domain. However, the attack can also be used to forge log entries by using homoglyphs in usernames. Homoglyph manipulations are often the first step towards executing advanced attacks such as stealing a user's credentials, Cross-Site Scripting (XSS), or log forgery. If an attacker redirects a user to a malicious site, the attacker can mimic a trusted domain to steal account credentials and perform actions on behalf of the user, without the user's knowledge. Similarly, an attacker could create a username for a website that contains homoglyph characters, making it difficult for an admin to review logs and determine which users performed which actions.
Potential mitigations
• [Implementation] Use a browser that displays Punycode for IDNs in the URL and status bars, or which color code various scripts in URLs.
Due to the prominence of homoglyph attacks, several browsers now help safeguard against this attack via the use of Punycode. For example, Mozilla Firefox and Google Chrome will display IDNs as Punycode if top-level domains do not restrict which characters can be used in domain names or if labels mix scripts for different languages.
• [Implementation] Use an email client that has strict filters and prevents messages that mix character sets to end up in a user's inbox.
Certain email clients such as Google's GMail prevent the use of non-Latin characters in email addresses or in links contained within emails. This helps prevent homoglyph attacks by flagging these emails and redirecting them to a user's spam folder.
Detection methods
• Manual Dynamic Analysis: If utilizing user accounts, attempt to submit a username that contains homoglyphs. Similarly, check to see if links containing homoglyphs can be sent via email, web browsers, or other mechanisms.
Observed examples
• CVE-2013-7236: web forum allows impersonation of users with homoglyphs in account names
• CVE-2012-0584: Improper character restriction in URLs in web browser
• CVE-2009-0652: Incomplete denylist does not include homoglyphs of "/" and "?" characters in URLs
• CVE-2017-5015: web browser does not convert hyphens to punycode, allowing IDN spoofing in URLs
• CVE-2005-0233: homoglyph spoofing using punycode in URLs and certificates
• CVE-2005-0234: homoglyph spoofing using punycode in URLs and certificates
• CVE-2005-0235: homoglyph spoofing using punycode in URLs and certificates
Related
Attack pattern · CAPEC (1)
- CAPEC-632 Homograph Attack via Homoglyphs attack pattern
Observed example · CVE (7)
- CVE-2017-5015 Google Chrome prior to 56.0.2924.76 for Linux, Windows and Mac, and 56.0.2924.87 for Android, incorrectly handled Unicode glyphs, which… vulnerability
- CVE-2013-7236 Simple Machines Forum (SMF) 2.0.6, 1.1.19, and earlier allows remote attackers to impersonate arbitrary users via a Unicode homoglyph… vulnerability
- CVE-2012-0584 The Internationalized Domain Name (IDN) feature in Apple Safari before 5.1.4 on Windows does not properly restrict the characters in URLs,… vulnerability
- CVE-2009-0652 The Internationalized Domain Names (IDN) blacklist in Mozilla Firefox 3.0.6 and other versions before 3.0.9; Thunderbird before 2.0.0.21;… vulnerability
- CVE-2005-0234 The International Domain Name (IDN) support in Safari 1.2.5 allows remote attackers to spoof domain names using punycode encoded domain… vulnerability
- CVE-2005-0235 The International Domain Name (IDN) support in Opera 7.54 allows remote attackers to spoof domain names using punycode encoded domain names… vulnerability
- CVE-2005-0233 The International Domain Name (IDN) support in Firefox 1.0, Camino .8.5, and Mozilla before 1.7.6 allows remote attackers to spoof domain… vulnerability
Child of · CWE (1)
- CWE-451 User Interface (UI) Misrepresentation of Critical Information weakness
Referenced by CAPEC · weakness (1)
- CAPEC-632 Homograph Attack via Homoglyphs attack pattern
Referenced by CVE · weakness (5)
- CVE-2026-45064 Symfony is a PHP framework for web and console applications and a set of reusable PHP components. vulnerability
- CVE-2026-48760 Symfony is a PHP framework for web and console applications and a set of reusable PHP components. vulnerability
- CVE-2025-27611 base-x is a base encoder and decoder of any given alphabet using bitcoin style leading zero compression. vulnerability
- CVE-2025-0996 Inappropriate implementation in Browser UI in Google Chrome on Android prior to 133.0.6943.98 allowed a remote attacker to spoof the… vulnerability
- CVE-2021-4221 If a domain name contained a RTL character, it would cause the domain to be rendered to the right of the path. vulnerability