Logo
Code never lies, comments sometimes do.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Security bug Memes

Posts tagged with Security bug

The Single Equals Nightmare

Debugging Security Programming Javascript Testing
10 months ago 578.7K views 0 shares
The Single Equals Nightmare
Peacefully sleeping until your brain suddenly screams: "WAIT! That code uses a single equals sign for comparison instead of double equals! That's an assignment, not a condition check!" That single character difference between if (user = admin) and if (user == admin) means you're not checking if user equals admin—you're literally making user become admin and then checking if that assignment succeeded (which it always will). Congratulations, you just gave everyone admin access!

Today's picks

LG UltraFine evo 32U990A-S 32" 6K (6144×3456) Nano IPS Black Professional Monitor | 60Hz, DisplayHDR 600, Thunderbolt 5, HDMI 2.1, DisplayPort 2.1, USB-C, Built-In Speakers & Adjustable Stand - Bundle

LG UltraFine evo 32U990A-S 32" 6K (6144×3456) Nano IPS Black Professional Monitor | 60Hz, DisplayHDR 600, Thunderbolt 5, HDMI 2.1, DisplayPort 2.1, USB-C, Built-In Speakers & Adjustable Stand - Bundle

Affiliate
$1549.95
NordVPN

NordVPN

Sponsored
VPN
When AI Discovers The Vim Trap

When AI Discovers The Vim Trap

Vim
662.2K views 1 year ago