CRITICAL
								
				
				
				
								
				Rule Definition
				An attacker could exploit this to read sensitive data from a table or execute dangerous functions remotely.				
								
				
				Remediation
				Add an explicit authorization check before the RFC call				
												
				 Violation Code Sample
				
				CALL FUNCTION 'RFC_READ_TABLE' DESTINATION 'SAP_SYSTEM'
				 
												 Fixed Code Sample
				
				AUTHORITY-CHECK OBJECT 'S_RFC'
   ID 'RFC_NAME' FIELD 'RFC_READ_TABLE'
   ID 'RFC_TYPE' FIELD 'FUGR'.
IF sy-subrc = 0.
   CALL FUNCTION 'RFC_READ_TABLE' DESTINATION 'SAP_SYSTEM'.
ELSE.
   MESSAGE 'Unauthorized RFC call' TYPE 'E'.
ENDIF.
				 
												
				Reference
				https://community.sap.com/t5/application-development-blog-posts/code-vulnerability-analyzer-checks/ba-p/13339467
https://cwe.mitre.org/data/definitions/862.html
https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abendyn_call_scrty.htm
								
				 Related Technologies
								
				
				
				
				Technical Criterion
				Secure Coding - Input Validation
				
				
				
				
				
					
				
				
				
About CAST Appmarq
					
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.