Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAPXPG vulnerability

Former Member
0 Kudos

We are concerned about a vulnerability of of using SAPXPG to issues OS commands to shutdown or otherwise tamper with the availability of the SAP system. Please advise of how to close this vulnerability.

1 ACCEPTED SOLUTION

0 Kudos

Hi,

SAPXPG is really only ment to be used internally. As the ABAP system is platform independent it makes use of external RFC servers started by SAP Gateway to perform platform dependent tasks. One example is executing operating system commands using transaction SM49. There is no SAP standard scenario that would remotely require the SAP Gateway to start any of these external RFC servers. You can therefore restrict access as documented in [Security Settings in SAP Gateway|http://help.sap.com/saphelp_nw70/helpdata/EN/1c/468e2f161b4f96b5401f02d30943b1/frameset.htm] to local access only. Remote access is only required for remote registration of RFC servers.

Example configurations:

secinfo (control access to RFC servers started by SAP Gateway):

# allow only local calls from ABAP to RFC servers on the local application server itself:
USER=*, USER-HOST=local, HOST=local, TP=*;

reginfo (control access to and from RFC servers registered by SAP Gateway):

# allow remote registration of RFC servers (TREX, IGS, etc.)
# check logged on clients in transaction SMGW to get a specific list of registered RFC servers on your system
TP=*

Please also have a look at the documentation above.

Best regards,

Christian

2 REPLIES 2

0 Kudos

Hi,

SAPXPG is really only ment to be used internally. As the ABAP system is platform independent it makes use of external RFC servers started by SAP Gateway to perform platform dependent tasks. One example is executing operating system commands using transaction SM49. There is no SAP standard scenario that would remotely require the SAP Gateway to start any of these external RFC servers. You can therefore restrict access as documented in [Security Settings in SAP Gateway|http://help.sap.com/saphelp_nw70/helpdata/EN/1c/468e2f161b4f96b5401f02d30943b1/frameset.htm] to local access only. Remote access is only required for remote registration of RFC servers.

Example configurations:

secinfo (control access to RFC servers started by SAP Gateway):

# allow only local calls from ABAP to RFC servers on the local application server itself:
USER=*, USER-HOST=local, HOST=local, TP=*;

reginfo (control access to and from RFC servers registered by SAP Gateway):

# allow remote registration of RFC servers (TREX, IGS, etc.)
# check logged on clients in transaction SMGW to get a specific list of registered RFC servers on your system
TP=*

Please also have a look at the documentation above.

Best regards,

Christian

Former Member
0 Kudos

thanks for the input! Really appreciated!