Menu
First tweet ever: 'just setting up my twttr'
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Underflow Memes
Posts tagged with Underflow
Genie Overflow
Programming
Security
Debugging
Algorithms
Testing
1 year ago
335.0K views
0 shares
Classic integer underflow exploit in the wild! The programmer found a loophole in the genie's API by requesting a negative number of wishes, causing the counter to wrap around to 4,294,967,295 - the maximum value of an unsigned 32-bit integer. This is basically SQL injection but for magical beings. The genie clearly forgot to validate his inputs. Should've used TypeScript instead of MagicScript.
I Wish For Int Max Wishes
Programming
Algorithms
Debugging
1 year ago
239.8K views
2 shares
Classic unsigned 8-bit integer overflow hack! The genie says "3 wishes left" but our clever programmer wishes for "0 wishes left" causing the counter to underflow from 0 to 255. It's the digital equivalent of rolling your car's odometer backward, except you're exploiting the genie's primitive variable type implementation instead of committing odometer fraud. Somewhere, a CS professor is using this as an example of why input validation matters.
Today's picks
Motumen Led Desk Lamp for Home Office, Eye-Care Architect Light with Clamp, Smart Double Head Computer Monitor Table Clip Lamp, Adjustable Flexible Goose-Neck, 25 Lighting Models, Task Lamp, Black
Affiliate
$22.98
GearScouts.com
Sponsored
Power stations
Praying For Todo List Unicorn Status
Javascript
309.8K views
11 months ago