mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
15 lines
No EOL
614 B
Markdown
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 |