The Patching Friars' AlmanacA calendar of CVE saints

June 23

ORM LeaksHoly card for orm-leaks, generated with AI (Claude, Anthropic) for the Lunario dei Frati Patchatori.CC BY-NC-SA 4.0 *** ORM Leaks MODELLUM LOQUITUR
🤖 Image and text generated with AI

⬇ Download holy card: ·

Embed on your site

Saint ORM Leaks, Who Filtered Out the Database's Secrets

Patron of ORMs, over-generous filters, and APIs that answer more than they should.

Life

In June 2024 Alex Brown of elttam described a class of flaws in ORMs, from Django to Strapi: when user input reaches the query filters, you can traverse the relations between tables and query columns never meant to be exposed. By comparing responses one character at a time, you infer password hashes and reset tokens. Not a single bug, but a crooked way of thinking, with a handful of CVEs in its wake.

Prayer

O Saint ORM Leaks, who makes the database confess what it meant to keep, teach our filters to pass only the right fields. Amen.

How to celebrate

Celebrated by allow-listing the filterable fields and updating Strapi and the other frameworks that were hit.

A generous filter makes a talkative database.

Technical record

Disclosed on
June 23 2024
CVE
CVE-2023-22894CVE-2023-34235CVE-2023-36472CVE-2024-29181CVE-2023-47117CVE-2023-31133CVE-2023-30843
CVSS
8.6Actively exploited (CISA KEV)
Product
strapi · strapi

Strapi through 4.5.5 allows attackers (with access to the admin panel) to discover sensitive user details by exploiting the query filter. The attacker can filter users by columns that contain sensitive information and infer a value from API responses. If the attacker has super admin access, then this can be exploited to discover the password hash and password reset token of all users. If the attacker has admin panel access to an account with permission to access the username and email of API users with a lower privileged role (e.g., Editor or Author), then this can be exploited to discover sensitive information for all API users but not other admin accounts.

Sources: elttam.com

Also remembered today

Shortcuts: ← → to move, D day, W week, M month, T today.

📅 Add to your calendar

SaintsGoogle CalendarApple, Outlook (.ics)

Observances (feasts, scourges and miracles)Google CalendarApple, Outlook (.ics)

In Google Calendar you can also paste the URL in Settings → Add calendar → From URL. The first sync can take a few hours.