# UUID Sandwich Attacks

If you're using UUIDs (version 1) to implement security features in your application, you may be vulnerable to Sandwich Attacks.

Solution: switch to version 4 UUIDs instead.

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306676533/dcce0df3-d091-4e4e-a238-e367c794cc47.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306687895/c119d45e-106b-43f3-a29e-5586d7655676.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306699547/3b784f77-b599-4c85-81d8-e1499b2f7e68.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306708799/3b1983cc-c404-4177-ab01-403e16d9e3cb.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306718743/e5e0a61e-3196-4556-96d8-a417baca75d8.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306728360/ef488d1b-c2b2-4dee-8512-2af85a0af713.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705306738849/8c9352cd-d481-428f-ad79-480c0b339725.png align="center")
