Max Levchin tells the story of how he shipped a bug that almost killed PayPal a year before IPO

1 Sept 2024 · 2 min
2:22

Max Levchin recounts a near-catastrophic security incident at PayPal roughly one year before its IPO. PayPal stored about 100 million rows of sensitive financial credentials encrypted under a master key; Levchin implemented a Shamir-style shared key ("sharded key") to replace the single master key. After re-encrypting the database, the site failed to decrypt correctly for about five and a half hours because of a subtle portability bug: getpass() on Solaris accepted up to 256 characters whereas on Linux it truncated input to 8 characters, so the key shards were truncated. Levchin discovered the discrepancy by checking the man page for getpass and fixed the issue, restoring service in about 10 minutes. He reflects on engineering attention to detail, crisis behavior, and the importance of code review and pairing.

Questions this video answers

Roughly 100 million rows.

About five and a half hours.

On Solaris getpass() could capture up to 256 characters; on Linux it was cut off after 8 characters.

About 10 minutes.

Chapters

More from Lorenzo

youtube.com

How To Speak Like The 1% Elite

1y ago
youtube.com

Netflix founder Reed Hastings explains why “family” is a bad metaphor for your startup

1y ago
youtube.com

Netflix founder Reed Hastings explains why “family” is a bad metaphor for your startup

1y ago
youtube.com

Stripe founder John Collison explains his product principle of “talking up to the user”

1y ago
youtube.com

Stripe CEO Patrick Collison shares the tactics he used for finding product/market fit

1y ago
youtube.com

Stripe CEO Patrick Collison shares the tactics he used for finding product/market fit

1y ago
youtube.com

Sam Altman explains his two biggest mistakes when he started investing in startups

1y ago
youtube.com

Naval Ravikant: “Inspiration is perishable”

1y ago
youtube.com

Rick Rubin on the power of creating something truly for yourself

1y ago
youtube.com

Naval Ravikant on Elon Musk: “The great entrepreneurs are always willing to start over”

1y ago
youtube.com

Jeff Bezos explains Amazon’s process for expanding into new products like Kindle and AWS

1y ago
See all content