1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/databases-can-generate-random-uuid-keys.md
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00

15 lines
No EOL
614 B
Markdown

---
title: 'Databases can generate random UUID keys'
tweet_id: '1538579134703497216'
thread_slug: weekly-thread-2022-24
author_username: tobias_petry
images:
- 'https://pbs.twimg.com/media/FUuDWADWAAAapY7.jpg'
created_at: 2022-06-19T17:47:05+00:00
slug: databases-can-generate-random-uuid-keys
---
⚡️ Database Tip
Many applications use the table's numeric primary key in the URL: Bots can scrape all data by incrementing the ID and competitors know your number of customers/resources and growth.Adding a random UUID which is used in URLs solves this.
https://sqlfordevs.io/uuid-prevent-enumeration-attack