Urgent.News

What's breaking now, across thousands of outlets.

Tech

We checked 573 vibe-coded apps for leaked API keys. Here is what we found

You built an app with Lovable, Replit, Bolt, Base44 or a similar tool. It works. But can anyone who opens it also copy your OpenAI key and spend your money? We wanted real numbers, not scary stories. So we looked at 573 public apps. How we checked Where the apps came from: public links that people shared on Hacker News, including 264 apps hosted on lovable.app, replit.app, base44, bolt.host,…

A recent investigation examined 573 public apps built using various tools like Lovable, Replit, Bolt, and Base44. The goal was to determine if these apps were vulnerable to leaked API keys, which could allow anyone who accessed the app to use the owner's OpenAI key and incur unnecessary costs. To conduct this study, researchers looked at public links shared on Hacker News, specifically targeting 264 apps hosted on platforms such as lovable.app, replit.app, base44, bolt.host, emergent, and trickle.

The researchers focused solely on what a visitor's browser would download, examining the home page and the site's JavaScript files. They did not engage in any hacking, password guessing, or login sessions. The findings revealed that out of the 573 apps, only 3 contained a secret OpenAI key visible to every visitor. This represents approximately 1 app in every 200.

The apps that had the exposed keys fell into three categories: 2 contained a GitHub access token, 1 had a Google key alongside a Gemini call, and the remaining 3 apps had both types of keys. While this might seem like a significant number, it is actually quite low in the grand scheme of things. However, for the owners of these apps, it is a serious concern, as anyone could copy the key from the browser and run requests on their account, leading to unexpected charges.

There are several reasons why this issue occurs. One common reason is that the AI builder directly inserted the key into the front-end code, as it is the quickest way to implement the desired feature. Since the app functions correctly, there is no immediate indication of the problem. Other issues detected during the study included the absence of a Content-Security-Policy header, a common security measure that could provide additional protection, and the presence of scripts from other domains without integrity checks.

These factors can lead to various security vulnerabilities, but in this case, the primary concern revolved around the exposed API keys.

The researchers also noted that 77 out of the 249 vibe-coded addresses that responded had errors instead of the expected app interface, indicating that many of these platforms were abandoned or broken. They encouraged app owners to check their own apps, which can be done quickly through a free tool available at https://mcp.pasportoo.com/check?utm_source=devto.

If a secret key is visible, the report will only display the first few characters and provide a prompt for the owner to move the key to the server side in their AI builder. This proactive step would prevent unauthorized access and potential billing issues.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Wednesday 18 November →