Study guide · Access control and IDOR
Who may do what? Access control and IDOR in TYPO3
Access control decides who may see which data and who may trigger which actions. If this check is missing, strong passwords and clean escaping help very little. On this page you learn how IDOR holes come about and why hidden buttons and unlinked pages protect nothing. Afterwards you know how to secure Extbase plugins, custom endpoints, files and backend permissions in TYPO3 14.
Broken access control: the most common risk
Broken access control means: the application does not check permissions sufficiently. A user gets hold of data or functions that are not meant for them. In the OWASP Top 10:2025 this category holds rank 1, with the identifier A01.
Since 2025, server-side request forgery, SSRF for short, also belongs to this category. In 2021, SSRF was still a category of its own. There is more on this further down, with the custom endpoints.
The most important ground rule is: the check must happen on the server. Checks in the browser, for example with JavaScript, only serve usability. The client can change every request. An attacker simply sends requests directly and so bypasses everything that happens in the browser.
Two more OWASP categories are closely related:
- Insecure Design, category A06: an access concept is missing already in the design, for example of a custom endpoint. That is a design flaw. A single line of code does not fix it then. You have to add the check at every relevant point.
- Mishandling of Exceptional Conditions, category A10: this includes the pattern fail open. A permission check throws an exception, and the code allows access in the error case. So if a catch block returns true, the door opens exactly when something goes wrong.
IDOR: when the ID alone is enough
IDOR stands for insecure direct object reference. An application loads an object directly by its ID without checking whether it belongs to the person asking. Then anyone can retrieve foreign records.
The running example on this page is a shop plugin. It shows orders via an address that contains the order number. Customer Anna sees her order 123. She changes the number in the address to 124 and suddenly sees another customer's order. This is exactly how you recognise an IDOR hole when testing. With correct protection you would get an error message or a clear “not allowed” instead.
So an attack needs no tools. Often, incrementing an ID in the URL is enough. Sequential, guessable IDs make systematic harvesting especially easy. If the hole sits in a form plugin, foreign submissions can be retrieved in bulk. Orders, profiles and form data usually contain personal data. That is why such a hole is often a data protection problem as well.
What really protects:
- The server-side ownership check on every single access. Only this closes the hole.
- Unpredictable references or signed tokens instead of raw IDs. They make guessing harder as well, but they do not replace the check.
What does not protect: hiding the ID with JavaScript, or sending it in a cookie or in the POST body instead of the URL. Sequential IDs with a high start value do not help either. The missing check remains in all these cases.
For a form plugin that stores submissions, the best combination is therefore: an ownership check in the code, an up-to-date extension and minimal rights. The check closes the hole, updates fix known bugs, and minimal rights limit the damage if something does happen. Hiding the plugin in the page tree, on the other hand, is not access control.
Missing checks on functions
Not only data, but actions too need a check. A missing function-level access check exists when an action runs even though the matching button is not shown to the user at all.
A hidden button is cosmetics. Visibility in the menu is not access control. You build the protection server-side into the action itself, for example with a check of the user group or of ownership.