How Reasonable Decisions Created a Security Inc...

How Reasonable Decisions Created a Security Incident

A security incident exposed the resumes of 460 job seekers. The surprising part? There was no single bug or obviously wrong decision to blame. Instead, a series of reasonable technical choices interacted in unexpected ways, creating a vulnerability that went unnoticed until it was too late. In this talk, I’ll share how the incident was discovered, investigated, and resolved, along with practical lessons on security, complexity, and hidden assumptions in Ruby on Rails applications.

Paul McMahon

November 29, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

41 slides
  1. But how? • Resume URLs contained secure random tokens •

    We never linked to them publicly • Admin pages required authentication • Candidate pages required a secret token • Google hadn't indexed them
  2. Tech stack in the beginning • Static site built with

    Middleman • MailChimp for the mailing list • Google Groups for job applications
  3. Discovered issue with using Google Groups • • Everyone at

    one company Problem unsubscribed We needed visibility over job Applications kept arriving, but no applications. one was receiving them • We had no way to know they were being missed
  4. Reasonable decision #1: Build a Rails app • • New

    Rails app for job applications, Middleman site linked to this when candidate pressed “Apply” button Admin interface to manually set up jobs, protected with HTTP basic auth Why this was reasonable Weʼd grown to the point where we could justify building and maintaining a dedicated app.
  5. Handling of resumes • Candidates uploaded resumes via ActiveStorage •

    Resumes were emailed directly to companies • I could view resumes in the admin interface • Those links used ActiveStorage redirect mode
  6. What does the signed ID actually protect? • Cryptographically signed

    • Practically impossible to guess • Permanent by default • Does not check who is requesting it
  7. Reasonable decision #2: Enable Crawler Hints • • • •

    • TokyoDev was already using Cloudflare in front of the site Enabled Cloudflare Crawler Hints Uses cache signals to tell search engines when pages change Sends URLs through IndexNow Supported by Bing, Yandex, Naver, etc. — not Google Problem We wanted search engines to discover our public pages. Why this was reasonable Crawler Hints only submitted URLs for pages we were intentionally serving publicly.
  8. Reasonable decision #3: Consolidate onto Rails • • Maintaining two

    interconnected Problem codebases was painful Middleman was adding complexity With 100+ jobs, we needed dynamic while limiting what the site could do. search and filtering • Companies wanted to manage jobs Why this was reasonable directly One application was simpler to • Migrated from Middleman to Rails • Cloudflare cached pages to keep maintain and could support the them fast functionality we needed.
  9. Images became a performance bottleneck Middleman generated image Problem variants

    at deploy time Serving images through Rails was adding • Rails generated them on demand unnecessary load. • ActiveStorage redirect mode meant • every request hit Rails
  10. Reasonable decision #4: Use ActiveStorage proxy mode • • Cloudflare

    could cache Why this was reasonable ActiveStorage responses Static images were a natural fit for CDN Subsequent requests no longer caching. reached Rails • Pages became faster
  11. Immediate response • • • • • Found multiple resumes

    in Bing Traced the cause to Crawler Hints Disabled Crawler Hints Made existing resume URLs return 404 Submitted exposed URLs to Bing for removal
  12. Keep ActiveStorage routes for public files • • • •

    Direct routes bypassed resume authorization We still needed them for public image variants Disabling them would mean more custom code Monkeypatched ActiveStorage to block direct access for resumes
  13. Improved beyond the immediate bug • External Rails security audit

    • Fixed discovered weaknesses • Proposed Rails documentation/API improvements
  14. The codebase is not the whole system • Developers (and

    AI agents) tend to reason from the repository • Infrastructure and external services can change application behavior • Those interactions may be invisible from the code alone
  15. Defense in depth • We consciously decided the unguessable URL

    was enough • Another mistake broke that assumption • Add one more layer of security than you think you need
  16. We could have kept quiet • The vulnerability was fixed

    • Bing wasnʼt showing the results • A lawyer advised reporting wasnʼt required
  17. We disclosed it anyway • Contacted affected people • Reported

    it to Japanʼs Personal Information Protection Commission • Published a detailed incident report
  18. How the disclosure was received • No customers raised concerns

    • Messages from affected people were overwhelmingly supportive • I probably lost more sleep over it than anyone else

More Decks by Paul McMahon

Other Decks in Technology