Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

Security Note Authority Check for Function Modules, SAP security note 931251

SAP Note 931251
SAP Security Note
Low priority

SAP security note 931251, “Security Note: Authority Check for Function Modules”, is a consulting note released on October 8, 2009. Below are the symptom and SAP recommended solution.

ComponentBasis Components > Middleware > RFC (BC-MID-RFC)
CategoryConsulting
PriorityCorrection with low priority
TypeSAP Security Note
Version3
StatusReleased for Customer
Released onOctober 8, 2009
LanguageEnglish

Description

Symptom

Error message RFC_NO_AUTHORITY.

Solution

The authority check on the technical layer has been extended to function modules. The authority object S_RFC can now be maintained for authority checks for:

  • Function Group: RFC_TYPE = "FUGR", RFC_NAME = <name of the function group>, ACTVT = "16"
  • Function Module: RFC_TYPE = "FUNC", RFC_NAME = <name of the function module>, ACTVT = "16"

At runtime, the first check is for the executed function group. If this check fails, a second check for the function module is executed. This behavior does not require changes during upgrades but allows for a more granular authority check to be activated as needed. Note that the authority check is performed only once with the first execution of the function module for the particular RFC session.

Reason and prerequisites

When calling RFC functions, the authority check is performed on both the technical layer in RFC and the business layer (AUTHORITY-CHECK in ABAP). Currently, authorization checks on the technical layer are only performed for function groups (R3TR FUGR), which may pose a security risk. For functions of the function group SRFC, refer to Note 931252.

References

Full note on SAP: SAP Support Launchpad note 931251

Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].

Explore More