Skip to content
Misconfiguration Audit finding Beginner

Insight incorrect amounts displayed to foreign users

The frontend hardcodes the dollar sign for currency amounts but does not mark those elements as notranslate, so Google Translate replaces the dollar sign with a local currency symbol while leaving the numbers unchanged. This misleads users about the actual currency of the amounts shown.

Blockian Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#37822 [W&A-Insight] insight incorrect amounts displayed to foreign users

#37822 [W&A-Insight] Incorrect Amounts Displayed To Foreign Users

Submitted on Dec 16th 2024 at 18:39:10 UTC by @Blockian for IOP | SwayLend Frontend

Description

Sway Bug Report

Incorrect Amounts Displayed When Page Is Translated

Overview

An issue has been found in the Swaylend frontend where currency symbols are incorrectly displayed when the page is translated into different languages.

Detailed Findings

In all areas of the frontend where amounts are displayed, the $ symbol is hardcoded. However, the wrapping HTML element does not include the notranslate class. This oversight causes Google Translate to replace the $ symbol with a currency sign that matches the selected language, leading to confusion.

Example

For instance, if a European user visits the site (a highly likely scenario) and uses Google Translate to view the site in Dutch, all instances of the $ symbol will be converted into € symbols. The underlying numeric values remain unchanged, which misrepresents the actual currency.

Impact

This discrepancy creates a misleading user experience by displaying incorrect amounts. Users may make incorrect assumptions about the values presented, potentially leading to erroneous transactions and a loss of trust in the system.

Proposed Solution

To resolve this issue, include the notranslate class (as recommended in the Google Translate documentation) for all elements displaying currency amounts. This will prevent Google Translate from altering the currency symbols.

Proof of Concept

Proof of Concept

To replicate the issue, follow these steps:

  1. Navigate to https://app.swaylend.com/.
  2. Enable Google Translate and select a language (e.g., Dutch).
  3. Observe that all $ symbols are replaced with € symbols while the numeric values remain unchanged.

Summary

Adding the notranslate class is a simple and effective fix to ensure currency symbols remain accurate across all translated versions of the site, preserving user trust and preventing potential errors.

The original report as published on Immunefi, by Blockian. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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

Impact

Users may see incorrect currency symbols and make wrong assumptions about amounts, potentially leading to erroneous transactions and loss of trust.

What the attacker needed

User uses Google Translate on the site; Page is translated to a language with a different currency…

How it was found

  1. Navigate to the Swaylend frontend.
  2. Enable Google Translate and select a language such as Dutch.
  3. Observe that dollar signs are replaced with euro signs while the numeric values remain unchanged.

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 shows money, it uses a symbol like $ to say which currency. If the page is translated by a tool like Google Translate, that tool may swap the $ for a different symbol such as €, but the numbers stay the same. So a user might think they are seeing euros when the site actually means dollars.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Blockian

View all

34 more disclosed reports, best first.

More from SwayLend Frontend

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.