Decorator Order Executes Route BEFORE Auth Check?!

DECORATOR DISASTER! Apply bottom-to-top! Route runs BEFORE auth! Non-admin deletes 847 users! Cannot recover! $4.7M data loss! €2.7M GDPR fine! Security team FIRED!

#python #pythondisaster #decoratororder #authenticationbypass #routesecurity #productionbug #pythonshorts #pythonwtf #adminaccess #careerending #gdpr #flask

https://www.youtube.com/watch?v=8hBZoqogJP0

Decorator Order Executes Route BEFORE Auth Check?! #Flask

YouTube

Python slicing out of bounds never crashes

Indexing data[100] on a 3-element list crashes with IndexError, but slicing data[100:] returns an empty list with no error. Python silently clamps slice indices to the valid range. You can slice with absurdly large numbers and Python just gives you what it can.

#pythonweirdestlogic #pythonweirdbehavior #pythongotcha #pythontrick #pythonmindblown #pythonunexpected #pythonwtf #pythonhiddenfeature #pythonco...

https://www.youtube.com/watch?v=FgPkpyahr4k

Python slicing out of bounds never crashes #pythonlistbounds

YouTube

This Python function ignores try and except and always returns finally

When try, except, and finally all have return statements, finally always wins. Python guarantees finally blocks execute no matter what. The return in finally overwrites whatever try was about to return. Three return statements, only one actually returns.

#pythonweirdestlogic #pythonweirdbehavior #pythongotcha #pythontrick #pythonmindblown #pythonunexpected #pythonwtf #pythonhi...

https://www.youtube.com/watch?v=MDOqaOzK940

This Python function ignores try and except and always returns finally #pythongotcha

YouTube

Dict Hash Collision DOS Slows Lookups From 1ms To 47 Seconds?!

HASH COLLISION DISASTER! Attacker crafts colliding keys! Dict becomes linked list! O(1)→O(n) lookup! 47 seconds per request! Complete outage! 470K users logged out! $2.3M lost! Infrastructure FIRED!

#python #pythondisaster #hashcollision #dosattack #dictperformance #productionbug #pythonshorts #pythonwtf #o(n)lookup #careerending #sessionstorage #algorithmiccomplexity

https://www.youtube.com/watch?v=f6WZj-_xj5c

Dict Hash Collision DOS Slows Lookups From 1ms To 47 Seconds?! #pythonwtf

YouTube

Bare Except Catches SystemExit Preventing Graceful Shutdown?!

EXCEPT DISASTER! Bare except swallows SystemExit! Process won't die! Force kill corrupts 2,300 payments! $4.7M phantom charges! Payment team FIRED!

#python #pythondisaster #bareexcept #systemexit #gracefulshutdown #productionbug #pythonshorts #pythonwtf #paymentcorruption #careerending #signalhandling #daemon

https://www.youtube.com/watch?v=fwnRVyhEGqY

Bare Except Catches SystemExit Preventing Graceful Shutdown?! #pythonshorts

YouTube

Lambda Captures Entire Scope Consuming 47GB RAM?!

LAMBDA MEMORY DISASTER! Closures capture ALL local variables! 1M lambdas × 5KB = 5GB RAM! Can't garbage collect! System thrashing! Event handlers lost! $890K recovery! Architect FIRED!

#python #pythondisaster #lambda #closure #memoryleak #productionbug #pythonshorts #pythonwtf #scopecapture #careerending #eventhandlers #garbagecollection

https://www.youtube.com/watch?v=ki3Z2IXO8Qc

Lambda Captures Entire Scope Consuming 47GB RAM?! #memoryleak

YouTube

YAML Load Executes Arbitrary Code Compromising 470 Servers?!

YAML RCE APOCALYPSE! yaml.load() executes Python! Attacker uploads malicious config! Backdoor on all servers! 4.7M database exfiltrated! $47M breach! CISO ARRESTED!

#python #pythondisaster #yaml #remotecodeexecution #configloading #productionbug #pythonshorts #pythonwtf #deserialization #careerending #criminalcharges #pyyaml

https://www.youtube.com/watch?v=Lvvwf-SaDeE

YAML Load Executes Arbitrary Code Compromising 470 Servers?! #YAML

YouTube

Regex Backtracking Takes 47 Seconds Per Email Validation?!

REGEX CATASTROPHIC BACKTRACKING! 28 chars = 268M combinations! 47 seconds per validation! 200 evil emails = total DOS! Product launch FAILED! $8.7M lost sales! Security engineer FIRED!

#python #pythondisaster #regex #catastrophicbacktracking #dosattack #productionbug #pythonshorts #pythonwtf #emailvalidation #careerending #redos #performance

https://www.youtube.com/watch?v=rCF3Ql5Jcsk

Regex Backtracking Takes 47 Seconds Per Email Validation?! #careerending

YouTube

Class Variable Shared Between ALL Instances Breaking Rate Limits?!

CLASS VARIABLE DISASTER! All instances share SAME list! User A's requests counted in User B's limit! 470K users randomly blocked! $2.3M lost API revenue! Rate limiter architect FIRED!

#python #pythondisaster #classvariable #sharedstate #ratelimiting #productionbug #pythonshorts #pythonwtf #instanceconfusion #careerending #apithrottling #oop

https://www.youtube.com/watch?v=PIUxUItEyb8

Class Variable Shared Between ALL Instances Breaking Rate Limits?! #productionbug

YouTube

Unicode Encoding Corrupts 2.3M Customer Names Permanently?!

UNICODE DISASTER! Latin1 to UTF-8 deletes special characters! José becomes Jos! 2.3M names corrupted! Cannot contact customers! €2.7M GDPR fine! Data engineer FIRED!

#python #pythondisaster #unicode #encoding #datacorruption #productionbug #pythonshorts #pythonwtf #gdprviolation #careerending #customerdata #silentdeletion

https://www.youtube.com/watch?v=MqtjSdp85uY

Unicode Encoding Corrupts 2.3M Customer Names Permanently?! #pythondisaster

YouTube