Avoid calling VF action upon page load as the action becomes vulnerable to CSRF

Impact Area

Security

 

Severity

High

 

Affected Element

Apex Page

 

Rule ID #

SF-AVOID-ACTION-UPON-LOAD

Description #

Avoid calling VF action upon page load as the action becomes vulnerable to CSRF.

Impact #

Calling Visualforce actions on page load exposes the application to Cross-Site Request Forgery (CSRF) attacks, leading to potential unauthorized actions being performed.

Remediation #

Do not call Visualforce actions automatically on page load. Instead, trigger them explicitly via user interactions or secure means.

Time to fix #

30 min

Scan Type #

All scans

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!