Username normalization missing allows visually indistinguishable accounts (Whitespace-Based Impersonation)
Revive Adserver accepts usernames with leading or trailing whitespace, so an account named with a space before or after an existing name looks identical in the interface. An attacker with user-creation rights could make a lookalike account to impersonate an administrator and confuse operators or log reviewers.
- Triaged in 3 hours
- Fixed in 5 days
- Disclosed after 13 days
##Version: ==revive-adserver 6.0.2==
##Summary:
Revive Adserver allows creation of usernames containing leading or trailing whitespace (e.g. "admin" or " admin"). The UI does not visibly differentiate such usernames from admin, producing visually identical accounts. This can be used to impersonate administrators, confuse operators, and hide malicious activity. The issue is primarily an information/UX vulnerability and does not directly grant elevated privileges, but it increases risk of social engineering and audit/logging confusion.
##Step to reprocude:
- Log in to Revive Adserver with an account that can create users.
- Go to
Users Access→ Add User. - Create a new user with a username containing leading or trailing spaces, for example:
" admin". - Save the new user. Open the user list or any UI that displays usernames — the new account appears visually identical (or very hard to distinguish) from the admin account
##Video PoC: ███
Impact
- Attackers can create accounts that appear identical to privileged accounts, facilitating impersonation and social-engineering attacks
- Human review of logs or UI may misattribute actions to the legitimate admin account, complicating incident response.
Context
Revive Adserver is an open source ad server. The report concerns its user management feature, specifically the Users Access → Add User screen, which lets an account with user-creation rights add new accounts to the installation. The username entered there is what operators see in the user list and in other parts of the UI that display usernames.
The finding is that the application accepts usernames with leading or trailing whitespace and does not visibly distinguish them from the same name without whitespace. The researcher classifies it as primarily an information/UX vulnerability: it does not by itself grant elevated privileges, but it makes impersonation and confusion between accounts possible.
Setup
The report states the version under test:
revive-adserver 6.0.2
The only precondition is an account that is allowed to create users. No special tools, roles beyond that, or configuration changes are described. The researcher also recorded a video proof of concept, which is referenced in the report but not reproduced here.
Finding it
The report shows that the username field accepts leading or trailing spaces. A name such as " admin" is stored and then rendered in the user list and elsewhere in the UI without any visible marker of the whitespace. To a human reading the screen, the new account looks the same as, or very hard to tell apart from, the existing admin account.
That is the whole of the observation: the input is accepted, and the display does not make the difference apparent. The researcher frames the result as visually identical accounts rather than as a privilege escalation.
Exploitation
Step 1: sign in with a user-creating account
Log in to Revive Adserver with an account that can create users. This is the only capability the attack needs; the account does not have to be an administrator itself.
Step 2: open the add-user screen
Navigate to Users Access→ Add User.
Step 3: create a user with whitespace in the name
Create a new user whose username contains leading or trailing spaces, for example:
" admin"
The application accepts the value and saves the account. Nothing in the report suggests the field trims the input or warns about the whitespace.
Step 4: observe the user list
Save the new user and open the user list, or any other UI that displays usernames. The new account appears visually identical, or very hard to distinguish, from the admin account. The whitespace is present in the stored value but not apparent on screen.
Root cause
The report describes the behaviour rather than the code: usernames are allowed to contain leading or trailing whitespace, and the UI does not visibly differentiate such usernames from the same name without whitespace. In other words, there is no normalisation of the username on input and no visual indication of the whitespace on output. The report does not identify the specific function or file responsible, so the exact location is likely in the user-creation path and the templates that render usernames.
Existing defences did not stop it because nothing in the flow treats surrounding whitespace as significant: the value is accepted as entered and displayed as stored.
Impact
The report lists two consequences:
- Attackers can create accounts that appear identical to privileged accounts, which facilitates impersonation and social-engineering attacks.
- Human review of logs or the UI may misattribute actions to the legitimate admin account, complicating incident response.
The researcher is explicit about the limits: the issue does not directly grant elevated privileges. Its value is in confusion, impersonation and audit ambiguity, and it depends on a person reading the UI or the logs and being misled by the near-identical name.
Fix
The report does not describe a fix or a change made in response. The natural remediation, consistent with the finding, is to normalise usernames on input (reject or trim leading and trailing whitespace) and to make any remaining whitespace visible in the UI, but the report itself does not state which of these was adopted.
Variants to test
- Other whitespace characters. Try tabs, non-breaking spaces and other Unicode space characters in the username field. A positive result is an account that is stored and displayed indistinguishably from an existing one.
- Other identity fields. Apply the same idea to display names, email addresses and group or role names. A positive result is two entries that look the same in the list view.
- Other user-management screens. Check rename and profile-edit flows, not just creation. A positive result is an existing account whose name can be changed to a whitespace variant of a privileged one.
- Log and audit views. Compare how the whitespace name appears in activity logs versus the user list. A positive result is a log entry that reads as the legitimate account.
Hunting notes
This kind of bug tends to sit in administrative user-management features: account creation, renaming, display names and any list view that renders stored strings without escaping or marking whitespace. During recon, the signal is a product with a multi-user admin interface and a user list that shows names as plain text; if the application accepts free-form names and echoes them back unchanged, it is worth testing.
The report gives the steps from an account with user-creation rights to a stored account that is visually indistinguishable from admin in the UI, and explains the consequences for impersonation and for log review. That framing, a UX and audit problem rather than a privilege escalation, is what the report argues.
What happened, in plain words
Revive Adserver is a piece of open source software that websites use to manage and display advertisements. Like most such tools, it has a login system, and an administrator can create extra accounts for other people. Each account has a username, which is the short name shown in the list of users.
The researcher found that when you create a user, the software accepts a username that has a space at the start or the end. For example, you can create an account called " admin" (with a space before the word) even though there is already an account called admin. On screen, the two names look the same, because a space at the edge of a name is invisible to a human reading a list. The software stores the space but does not show it.
That means someone with permission to create users can make an account that looks exactly like the administrator's account. It does not give that person any extra powers by itself. The danger is confusion: a colleague looking at the user list, or an investigator reading logs, may think an action was taken by the real administrator when it was not. The researcher calls this an information and user-experience (UX) problem rather than a privilege escalation, and it was rated medium severity.
Context
Revive Adserver is an ad server: software that decides which advertisement to show to which visitor and keeps track of the results. It is open source, meaning its code is publicly available.
The report is about one specific feature: user management. Inside the administration area there is a screen reached through Users Access → Add User. An account that has been given the right to create users can use this screen to add new accounts to the installation. The username typed there is the name that operators later see in the user list and in other parts of the interface that display usernames.
The finding is simple to state. The application accepts usernames with leading or trailing whitespace (spaces before or after the visible name) and does not visibly distinguish them from the same name without whitespace. The researcher classifies it as primarily an information/UX vulnerability: it does not by itself grant elevated privileges, but it makes impersonation and confusion between accounts possible.
Setup
The report states the version under test:
revive-adserver 6.0.2
This line is just the name and version number of the software that was tested. Software versions matter because a bug found in one version may already be fixed in a later one, so a report always says which version it applies to.
The only precondition is an account that is allowed to create users. No special tools, no extra roles beyond that, and no configuration changes are described. The researcher also recorded a video proof of concept, which is referenced in the report but not reproduced here.
Finding it
The report shows that the username field accepts leading or trailing spaces. A name such as " admin" is stored and then rendered in the user list and elsewhere in the UI without any visible marker of the whitespace. To a human reading the screen, the new account looks the same as, or very hard to tell apart from, the existing admin account.
That is the whole of the observation: the input is accepted, and the display does not make the difference apparent. The researcher frames the result as visually identical accounts rather than as a privilege escalation.
Exploitation
Step 1: sign in with a user-creating account
Log in to Revive Adserver with an account that can create users. This is the only capability the attack needs; the account does not have to be an administrator itself.
Why this step: the whole test depends on being allowed to reach the add-user screen. If your account cannot create users, you cannot try the rest.
Step 2: open the add-user screen
Navigate to Users Access→ Add User.
This is a menu path in the administration interface: first the section called Users Access, then the option Add User. It is the form where new accounts are created.
Step 3: create a user with whitespace in the name
Create a new user whose username contains leading or trailing spaces, for example:
" admin"
The value shown is a space followed by the word admin; the quotes delimit the example. The quotes are how the report shows the value; the important part is the space between the opening quote and the word. The application accepts the value and saves the account. Nothing in the report suggests the field trims the input or warns about the whitespace.
Why this step: this is the actual test. If the software rejected the space or removed it automatically, there would be no bug. Because it accepts and stores the value as typed, the account now exists with a name that differs from admin only by an invisible character.
Step 4: observe the user list
Save the new user and open the user list, or any other UI that displays usernames. The new account appears visually identical, or very hard to distinguish, from the admin account. The whitespace is present in the stored value but not apparent on screen.
Why this step: the impact only exists if a human looking at the screen is fooled. Confirming that the list shows the two names the same way is what turns an odd input into a real problem.
Root cause
The report describes the behaviour rather than the code: usernames are allowed to contain leading or trailing whitespace, and the UI does not visibly differentiate such usernames from the same name without whitespace. In other words, there is no normalisation of the username on input and no visual indication of the whitespace on output. The report does not identify the specific function or file responsible, so the exact location is likely in the user-creation path and the templates that render usernames.
Existing defences did not stop it because nothing in the flow treats surrounding whitespace as significant: the value is accepted as entered and displayed as stored.
Impact
The report lists two consequences:
- Attackers can create accounts that appear identical to privileged accounts, which facilitates impersonation and social-engineering attacks.
- Human review of logs or the UI may misattribute actions to the legitimate admin account, complicating incident response.
The researcher is explicit about the limits: the issue does not directly grant elevated privileges. Its value is in confusion, impersonation and audit ambiguity, and it depends on a person reading the UI or the logs and being misled by the near-identical name.
Fix
The report does not describe a fix or a change made in response. The natural remediation, consistent with the finding, is to normalise usernames on input (reject or trim leading and trailing whitespace) and to make any remaining whitespace visible in the UI, but the report itself does not state which of these was adopted.
Variants to test
- Other whitespace characters. Try tabs, non-breaking spaces and other Unicode space characters in the username field. A positive result is an account that is stored and displayed indistinguishably from an existing one.
- Other identity fields. Apply the same idea to display names, email addresses and group or role names. A positive result is two entries that look the same in the list view.
- Other user-management screens. Check rename and profile-edit flows, not just creation. A positive result is an existing account whose name can be changed to a whitespace variant of a privileged one.
- Log and audit views. Compare how the whitespace name appears in activity logs versus the user list. A positive result is a log entry that reads as the legitimate account.
Hunting notes
This kind of bug tends to sit in administrative user-management features: account creation, renaming, display names and any list view that renders stored strings without escaping or marking whitespace. During recon, the signal is a product with a multi-user admin interface and a user list that shows names as plain text; if the application accepts free-form names and echoes them back unchanged, it is worth testing.
The report gives the steps from an account with user-creation rights to a stored account that is visually indistinguishable from admin in the UI, and explains the consequences for impersonation and for log review. That framing, a UX and audit problem rather than a privilege escalation, is what the report argues.
Glossary
- Ad server: software that stores advertisements and decides which one to show to each visitor, then records the results.
- Open source: software whose source code is published and can be read, changed and reused by anyone.
- User management: the part of an application where accounts are created, edited and listed.
- Username: the short name that identifies an account and is shown in lists and logs.
- Whitespace: any character that produces empty space rather than a visible symbol, such as a normal space, a tab or a non-breaking space.
- Leading whitespace: whitespace at the beginning of a value, before the first visible character.
- Trailing whitespace: whitespace at the end of a value, after the last visible character.
- Normalisation: cleaning up input into a standard form, for example by removing spaces at the edges or converting different space characters to one kind.
- Trimming: removing leading and trailing whitespace from a value.
- UI (user interface): the screens, buttons and forms a person uses to interact with software.
- UX (user experience): how easy and clear it is for a person to use an interface.
- Privilege escalation: gaining more permissions than an account is supposed to have.
- Impersonation: pretending to be another person or account.
- Social engineering: tricking a person into trusting or helping an attacker, often by looking legitimate.
- Audit log: a record of who did what and when, used to investigate incidents.
- Incident response: the process of investigating and dealing with a security problem after it is noticed.
- Severity: a rating of how serious a vulnerability is, often expressed as a score such as CVSS.
- CVSS: a standard scoring system for the severity of security vulnerabilities.
- Proof of concept (PoC): a demonstration that a vulnerability really works, often a video or a set of steps.
- Recon: short for reconnaissance, the early phase of testing where you look at how a product behaves to find things worth investigating.
- Escaping: converting characters in displayed text so they are shown literally rather than interpreted by the browser or the page.
- Unicode: the standard that assigns a number to every character in every writing system, including many kinds of space.