Urgent.News

What's breaking now, across thousands of outlets.

Tech

Supabase had granted anon TRUNCATE on 96 tables. I never wrote that line, and every check I own was green.

Read on: the blind spot a non-homologous model caught · 繁體中文版 Do this first, it takes fifteen seconds Paste this into your Supabase SQL editor: SELECT grantee , privilege_type , count ( * ) AS n FROM information_schema . role_table_grants WHERE table_schema = 'public' AND grantee IN ( 'anon' , 'authenticated' ) AND privilege_type IN ( 'TRUNCATE' , 'TRIGGER' ) GROUP BY 1 , 2 ORDER BY 1 , 2 ; If it…

On August 4, 2024, Supabase granted the TRUNCATE privilege on 96 tables to the anon user. The reporter, who had never written any such grants, discovered this when checking privileges on their articles table. The TRUNCATE command is a table-level privilege and is not governed by row-level security (RLS), which is why the reporter's policies did not block it.

The issue originated from Supabase's public schema, which automatically grants TRUNCATE to anon and authenticated users when a new table is created. The reporter's fix revoked TRUNCATE and TRIGGER privileges from anon and authenticated users on all tables, but a loop missed views and their verification query could not detect this oversight.

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

I Built a Free Scientific Calculator With a Real Natural Math Display (No Signup)

Why I built this Most free online calculators show math as flat text — 3/4 in one line, no real fraction rendering. That never felt right, especially compared to an actual physical calculator.

  • OnlineScientificCalc displays math equations naturally like a physical calculator.
  • No signups or downloads required, offering instant access.
  • Built with Astro.js and Tailwind CSS v4, featuring responsive design.

A graphical desktop for the ZX Spectrum

  • Graphical desktop developed for ZX Spectrum 48K in Z80 assembly language.
  • Desktop includes overlapping windows, menus, heap, event queue, and more.
  • Runs on real device, not emulator, with detailed timing and design insights.

The New CSS Property I Wish Existed Years Ago

I used to fix this with a JavaScript resize listener. Now field-sizing: content do it in one line. Here’s another feature that we as web developers have been waiting for for years. It is CSS field-sizing . It landed in Chrome 123, Safari 26.2, and most recently in Firefox 152. Making it available in all major engines. Here’s how it works.

  • Field-sizing CSS property dynamically resizes text areas based on content
  • Available in Chrome 123, Safari 26.2, and Firefox 152
  • Eliminates need for JavaScript resize listeners and scroll bars

More from Saturday 19 September →