Security Issues in Web Dynpro For ABAP
Security Issues in Web Dynpro For ABAP
When creating Web applications using Web Dynpro for ABAP programming models, and for the scenario variant Developing ABAP Applications Using Web Dynpro, it is important to consider security issues. Security functions are available both for when you create Web applications as well as for when you operate them.
In a productive system the following HTTP service nodes (transaction SICF) are not active for the configuration, since a configuration always represents a development. /sap/bc/webdynpro/sap/CONFIGURE_APPLICATION /sap/bc/webdynpro/sap/CONFIGURE_COMPONENT /sap/bc/webdynpro/sap/WD_ANALYZE_CONFIG_APPL /sap/bc/webdynpro/sap/WD_ANALYZE_CONFIG_COMP /sap/bc/webdynpro/sap/WD_ANALYZE_CONFIG_USER
Security in AS-ABAP
For basic information about security aspects in the AS ABAP system in which you are creating your Web application, see Network and Communication Security and SAP Web Application Server Security (ABAP).
Note in particular the configuration for SSL support. The logon ticket cache function is provided for increasing performance when there are multiple logons. Certain virus scan profiles are delivered by SAP in the standard system. A virus scan can be performed when uploading HTTP (more information: Virus Scan Interface). The Internet Communication Manager (ICM) receives the HTTP requests from the Internet and returns a response.
Refer to Activating and Deactivating ICF Services. For security reasons, the only services that should be active in the HTTP service tree are those services that you really need. If,
however, you activate nodes at a higher level, this means that the whole part of the service tree below this level is also active and completely open, and therefore not secure if, for instance, an anonymous user is defined. A simple procedure is available for developing and configuring the system logon with Web applications. The security aspects are integrated in this procedure.
In contrast to the console in Web Dynpro for Java, the console in Web Dynpro ABAP is used for displaying data only.
SAP recommends that the view context should contain only the data necessary for the special view. Regardless of security issues, a design like this also improves application performance. The data held and processed in the view context is a central part of every Web Dynpro application. The UI elements that were defined for the relevant view using the View Designer are generally bound to the individual view context elements by the Web Dynpro application developer to ensure that data flow takes place between the client and the server. However, it is
also possible for view context data to be unbound in the view contexts, since, for instance, an ABAP Dictionary structure containing further attributes that are not visible is used. To improve the security, you can either set the attribute to readOnly = true in the Properties view or delete the relevant attributes. Unauthorized access through the client to the content of the view context is not possible with server side rendering due to various security mechanisms, but can never be ruled out (because of software errors). Hence the recommendation above that the view context should only contain data that is not critical if changed. Also note that all input always has to be checked. Web Dynpro already provides an inbuilt check for type security. In addition, an application must check the semantic correctness of each changed attribute. This includes checking specific types of attacks, such as SQL attacks, if an input is used later in a dynamic SQL statement.
Authorizations
General authorization checks for services and application are available over the ICF (see Authorizations). Special authorization checks for Web Dynpro Applications if needed are assigned by the respective application.
An authorization check is only offered by Web Dynpro for personalization. This checks the administration authorization for personalizing UI elements.
URL Generation
See URL Generation in an AS-ABAP - Web Dispatcher Configuration
Notes
Relevant SAP notes SAP Note Number 517484 510007 420085 853878 Title Inactive Services in the Internet Communication Framework Setting up SSL on the Web Application Server Logon Ticket Cache HTTP White-List Check (Security)