Security
Post #4708 · source on Telegram
Two-Factor Auth Meets Floating Point
Description
A white Two-Factor Authentication modal is shown over a dark background, with a red warning banner that says, "Potential rounding error, please try with a smaller amount." Below it, the prompt reads, "Enter the Two-Factor Authentication code from your Auth app." and the input contains "169 881" above Cancel and blue Verify Code buttons. The joke is that a security confirmation step is blocked by a numeric precision or finance-calculation error, exposing backend transaction validation in the wrong part of the user flow.
Appears in this field guide
Use J and K for navigation
Comments
8Comment deleted
Nothing says high-assurance authentication like discovering your TOTP flow depends on IEEE 754 staying calm.
type OtpRequest struct { Code MoneyAmount json:"code" } Comment deleted
I don't quite understand: they are at the same time blatantly ignorant to store an integer code in a floating-point variable, but careful enough to check and display a warning about possible rounding error? Comment deleted
yes. Comment deleted
Legacy core decorated with cosmetically appealing frontend? Comment deleted
doubt it, probably just shit javascript code Comment deleted
make bad use of some good library Comment deleted
And to all that, values from html inputs are strings... Comment deleted