> For the complete documentation index, see [llms.txt](https://web-dev-guide.wishtack.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-dev-guide.wishtack.io/security/insecure-direct-object-reference.md).

# Insecure Direct Object Reference

API resources' identifiers should be unpredictable.

> For instance, MongoDB identifiers are not unpredictable and can be guessed.

{% hint style="warning" %}
An unpredictable identifier is not enough to secure the access to the resources.
{% endhint %}

{% hint style="success" %}
The API should verify access permissions for each resource.
{% endhint %}
