What a code audit finds

06 of 06

Code from an AI prototype
Made-up file · real mistakes
1// app/api/orders/route.ts2import { createClient } from '@supabase/supabase-js'3 4const SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6..."5 6export async function GET(req) {7  const supabase = createClient(URL, SUPABASE_KEY)8 9  const { data } = await supabase10    .from('orders')11    .select('*')12 13  return Response.json(data)14}

This compiles, works in the demo and goes live. Click scan.

Fourteen lines, three holes of which two open your entire database. A real audit runs through your whole project like this.

Bas Voets · Webframer
0:00 / 0:00
What a code audit finds · Demo · Webframer