Object: The Particular File or Record a Rule Protects
A file can have one rule for reading it and another for changing it. Both rules concern the same object: that file. Security systems use the word for the particular resource a requested action would affect.
An object is the thing a requested action is aimed at. The subject is the person, program or device asking to perform the action. Together with the action itself, these roles describe the access decision the system needs to make.
The National Institute of Standards and Technology's access-control definitions of object include resources such as files, records, tables and devices. The word is broad because the thing being protected depends on the system.
- Keep every photo and file on a box you own, and reach them from anywhere.
- Let backups run on their own so one dead laptop doesn't take your files with it.
- Add two drives and a failed disk no longer means lost files.
One request, three pieces
Suppose a customer signs in to a billing portal and asks to view an invoice. The account making the request supplies the subject's identity. Reading is the requested action. The specific invoice is the object.
That account may be allowed to read its invoice while being unable to change the amount or delete the record. Another account may have different permissions for the same invoice.
This is why authorization—deciding what access is permitted—needs more detail than whether someone has signed in. The system has to connect this requester with this action on this object.
A broad permission to use the invoice page doesn't necessarily answer which invoices a customer may use. The page can be available to every customer while the records behind it remain limited to their respective owners.
The identifier selects the invoice
Applications use identifiers to select objects. An identifier may be a number or a string of characters. It tells the application which item a request concerns.
In the hypothetical portal, a request might identify invoice 103. If the same account changes that value to 104, the application has a new object to evaluate. Knowing or guessing the next number supplies no permission to read the next customer's bill.
The software-security project OWASP describes failures of this kind as broken object-level authorization. A software interface receives an identifier but fails to check adequately whether the requester is allowed to act on the selected object.
A longer, harder-to-guess identifier doesn't replace the check. Its role is still selection. Access control needs to enforce the permissions for the actual record and operation.
The Many Ways to Decide Who Gets In
Subject and object describe roles
A process, meaning a running program, can be a subject when it asks to open a file. The file is the object of that request.
The process can also become an object when another part of the system asks to manage it. These labels describe its role in an interaction, rather than dividing everything permanently into active and inactive things.
A programmer uses “object” another way
In object-oriented programming, a software object groups state, the information it holds, with behavior, the operations it provides. Oracle's introductory explanation of Java objects calls the stored values fields and the operations methods.
A program could represent invoice information with an object that stores quantities and prices and provides a method to calculate the total. This programming object and the access-controlled invoice concern related information, but the words describe different aspects of it.
The program can also channel changes through defined methods, an approach called encapsulation. For example, a method could reject a negative quantity before updating an invoice.
That value check has a different job from deciding who may edit the invoice. In the hypothetical system, an authorized update can pass the permission check and then reach the method, which checks the proposed value before storing it.
Subject: Who or What Is Asking for Access?

Access Matrix: A Table That Shows Who Can Do What

Authorization: Who Can Do What With Which Data?

QUOTE:
"Amateurs hack systems, professionals hack people."
