Home / Companies / Ory / Blog / Post Details
Content Deep Dive

Cloudflare, please don't vibe code your own crypto

Blog post from Ory

Post Details
Company
Ory
Date Published
Author
Aeneas Rekkas
Word Count
1,298
Language
English
Hacker News Points
-
Summary

Large Language Models (LLMs) have revolutionized rapid code generation, enabling the swift development of complex software systems like Cloudflare's workers-oauth-provider. However, this speed introduces significant security risks, as evidenced by the examination of security-critical code which reveals fundamental design flaws and vulnerabilities. The text highlights issues such as inadequate client secret handling, where simple SHA-256 hashing and equality checks expose the system to offline cracking and timing attacks, and the problematic use of a static wrapping key, which undermines data protection. Furthermore, deviations from OAuth 2.1 guidelines for token lifecycle management and challenges with data model scalability underscore the intricacies of ensuring robust security. While LLMs provide impressive capabilities, the text argues for the necessity of expert oversight in securing code, suggesting reliance on rigorously audited and community-supported open-source solutions like Ory Hydra and node-oidc-provider for foundational security infrastructure, emphasizing the importance of proven, expert-designed systems in maintaining security integrity.