Access permissions should be checked before a SOQL/SOSL/DML operation

Impact area

Manageability

Severity

Medium

Affected element

Apex  Class

Apex Trigger

Rule ID

SF-0033

Impact

Since Apex runs in system mode not having proper permissions checks results in escalation of privilege and may produce runtime errors.


Remediation

Avoid runtime errors by explicitly checking for permissions before SOQL/SOSL/DML statements.

Time to fix

45 mins




Last modified on Jun 10, 2020