What it is: User Interface (UI) Misrepresentation of Critical Information (CWE-451) is a vulnerability where the UI does not properly represent critical information to users.
Why it matters: This can lead to security issues such as phishing attacks and unauthorized access when users are misled by incorrect or manipulated data.
How to fix it: Implement input validation and output encoding strategies to ensure accurate representation of critical information in the UI.
TL;DR: User Interface (UI) Misrepresentation of Critical Information is a vulnerability where the user interface fails to accurately represent critical data, leading to potential security risks. It can be mitigated by ensuring proper input validation and output encoding.
| Field | Value |
|---|---|
| CWE ID | CWE-451 |
| OWASP Category | A06:2025 - Insecure Design |
| CAPEC | 154, 163, 164, 173, 98 |
| Typical Severity | High |
| Affected Technologies | web applications |
| Detection Difficulty | Moderate |
| Last Updated | 2026-07-29 |
What is User Interface (UI) Misrepresentation of Critical Information?
User Interface (UI) Misrepresentation of Critical Information (CWE-451) is a type of Insecure Design vulnerability that occurs when the user interface does not properly represent critical information to users, allowing this information or its source to be obscured or spoofed. As defined by the MITRE Corporation under CWE-451, and classified by the OWASP Foundation under A06:2025 - Insecure Design.
Quick Summary
User Interface (UI) Misrepresentation of Critical Information is a serious security issue that can lead to phishing attacks and unauthorized access when users are misled by incorrect or manipulated data. This vulnerability impacts web applications where critical information such as account balances, transaction details, and security warnings are displayed inaccurately. Jump to: Overview · How It Works · Business Impact · Attack Scenario · Detection · Fixes
Jump to: Quick Summary · User Interface (UI) Misrepresentation of Critical Information Overview · How User Interface (UI) Misrepresentation of Critical Information Works · Business Impact of User Interface (UI) Misrepresentation of Critical Information · User Interface (UI) Misrepresentation of Critical Information Attack Scenario · How to Detect User Interface (UI) Misrepresentation of Critical Information · How to Fix User Interface (UI) Misrepresentation of Critical Information · Framework-Specific Fixes for User Interface (UI) Misrepresentation of Critical Information · How to Ask AI to Check Your Code for User Interface (UI) Misrepresentation of Critical Information · User Interface (UI) Misrepresentation of Critical Information Best Practices Checklist · User Interface (UI) Misrepresentation of Critical Information FAQ · Vulnerabilities Related to User Interface (UI) Misrepresentation of Critical Information · References · Scan Your Own Site
User Interface (UI) Misrepresentation of Critical Information Overview
What
User Interface (UI) Misrepresentation of Critical Information is a vulnerability where the user interface does not accurately represent critical information to users, leading them to make incorrect decisions based on misleading data.
Why it matters
This vulnerability can lead to security issues such as phishing attacks and unauthorized access when users are misled by incorrect or manipulated data. It undermines trust in the application and can result in financial losses, compliance issues, and damage to a company’s reputation.
Where it occurs
It commonly occurs in web applications where critical information is displayed inaccurately due to improper handling of user input or lack of proper validation.
Who is affected
Users who rely on accurate representation of data in the UI are at risk. This includes customers making financial decisions, administrators managing security settings, and employees accessing sensitive company information.
Who is NOT affected
Applications that properly validate and sanitize all inputs before displaying critical information to users are not vulnerable to this issue.
How User Interface (UI) Misrepresentation of Critical Information Works
Root Cause
The root cause lies in the improper handling or representation of critical data within the user interface, leading to misleading or incorrect information being presented to users.
Attack Flow
- An attacker manipulates input data to misrepresent critical information.
- The manipulated data is displayed inaccurately on the UI.
- Users make decisions based on this inaccurate information, potentially leading to security breaches or financial losses.
Prerequisites to Exploit
- The application must allow untrusted inputs that can manipulate critical data representations.
- The user interface must not properly validate and sanitize these inputs before displaying them.
Vulnerable Code
def display_balance(user_id):
balance = get_user_balance(user_id)
# Display the balance without proper validation or encoding
print(f"Your current balance is: {balance}")
This code snippet displays a user’s balance directly from an untrusted source without any validation, leading to potential misrepresentation of critical information.
Secure Code
def display_balance(user_id):
balance = get_user_balance(user_id)
# Validate and encode the balance before displaying it
if isinstance(balance, (int, float)) and balance >= 0:
print(f"Your current balance is: {balance}")
This secure code snippet ensures that the displayed balance is a valid numeric value and non-negative, preventing any potential misrepresentation.
Business Impact of User Interface (UI) Misrepresentation of Critical Information
Confidentiality
Misleading information can lead to unauthorized access or manipulation of sensitive data.
Integrity
Incorrect representation of critical information can result in users making erroneous decisions based on false data.
Availability
Inaccurate UI representations can disrupt normal business operations, leading to financial losses and compliance issues.
User Interface (UI) Misrepresentation of Critical Information Attack Scenario
- An attacker manipulates a user’s account balance by injecting malicious input into the application.
- The manipulated balance is displayed inaccurately on the UI.
- Users make decisions based on this incorrect information, leading to financial losses or security breaches.
How to Detect User Interface (UI) Misrepresentation of Critical Information
Manual Testing
- Review user interface designs for accurate representation of critical data.
- Verify that all inputs are properly validated and sanitized before being displayed.
Automated Scanners (SAST / DAST)
Static analysis can identify untrusted inputs without proper validation, while dynamic testing can detect misrepresentation in runtime scenarios.
PenScan Detection
PenScan’s scanners such as ZAP, Nuclei, Wapiti, Nikto, SSLyze, and Dalfox can help identify UI misrepresentations by analyzing user interface elements for accurate data representation.
False Positive Guidance
A real finding will show untrusted inputs leading to incorrect data representations. A false positive may occur if the input is properly validated but appears suspicious due to context that a scanner cannot determine.
How to Fix User Interface (UI) Misrepresentation of Critical Information
- Perform data validation before interpreting and displaying critical information.
- Create a strategy for presenting information, planning how to display unusual characters accurately.
Framework-Specific Fixes for User Interface (UI) Misrepresentation of Critical Information
Python/Django
def display_balance(request):
user_id = request.GET.get('user_id')
balance = get_user_balance(user_id)
if isinstance(balance, (int, float)) and balance >= 0:
return render(request, 'balance.html', {'balance': balance})
Java
public void displayBalance(HttpServletRequest request) {
String userId = request.getParameter("user_id");
BigDecimal balance = getBalance(userId);
if (balance != null && balance.compareTo(BigDecimal.ZERO) >= 0) {
// Render the view with the validated balance
}
}
Node.js
app.get('/display-balance', function(req, res) {
const userId = req.query.user_id;
const balance = getBalance(userId);
if (typeof balance === 'number' && balance >= 0) {
res.render('balance', { balance });
}
});
PHP
function display_balance($user_id) {
$balance = get_user_balance($user_id);
if (is_numeric($balance) && $balance >= 0) {
echo "Your current balance is: " . htmlspecialchars($balance);
}
}
How to Ask AI to Check Your Code for User Interface (UI) Misrepresentation of Critical Information
Review the following [language] code block for potential CWE-451 User Interface (UI) Misrepresentation of Critical Information vulnerabilities and rewrite it using input validation: [paste code here]
User Interface (UI) Misrepresentation of Critical Information Best Practices Checklist
- ✅ Perform data validation before interpreting critical information.
- ✅ Create a strategy for presenting information accurately, considering unusual characters or edge cases.
User Interface (UI) Misrepresentation of Critical Information FAQ
How does User Interface (UI) Misrepresentation of Critical Information occur?
It occurs when the user interface fails to accurately represent critical information, leading users to make incorrect decisions based on misleading data or context.
Why is it important to prevent UI misrepresentation in web applications?
Preventing UI misrepresentation ensures that users can trust the information presented and take appropriate actions without being misled by false or manipulated data.
How does User Interface (UI) Misrepresentation of Critical Information affect business operations?
It can lead to financial losses, compliance issues, and damage to a company’s reputation if critical decisions are based on incorrect UI representations.
What steps should developers take to detect User Interface (UI) Misrepresentation of Critical Information in their applications?
Developers should manually review user interfaces for accurate representation of data and use automated scanners to identify potential misrepresentations.
How can I fix User Interface (UI) Misrepresentation of Critical Information once it is detected?
Implement input validation and output encoding strategies to ensure that critical information is accurately represented in the UI.
What are some best practices for preventing User Interface (UI) Misrepresentation of Critical Information?
Regularly review user interface designs, conduct thorough testing, and maintain a clear understanding of how data should be presented to users.
Can you provide an example scenario where User Interface (UI) Misrepresentation of Critical Information might occur?
A banking application displaying incorrect account balances due to UI misrepresentation can lead customers to make erroneous financial decisions.
Vulnerabilities Related to User Interface (UI) Misrepresentation of Critical Information
| CWE | Name | Relationship |
|---|---|---|
| CWE-684 | Incorrect Provision of Specified Functionality | ChildOf |
| CWE-221 | Information Loss or Omission | ChildOf |
| CWE-346 | Origin Validation Error | PeerOf |
References
Scan Your Own Site
Manual code review catches what you know to look for. An automated scan catches what you didn’t. Scan your own website using PenScan to find User Interface (UI) Misrepresentation of Critical Information and other risks before an attacker does.