SAP’s April 2017 Security Notes include Note 2419592 on a TREX code injection vulnerability, Note 2235515 on SNOTE RFC destination logging, Notes 2410082, 2372301, 2400292 and 2387249 on XML External Entity (XXE) weaknesses, and Note 2407616 on a saprules.xml update for SAP GUI.
Executive Summary
SAP’s April 2017 Security Notes cover a TREX code injection vulnerability, SNOTE download logging, XML External Entity (XXE) weaknesses and a SAP GUI saprules.xml update. Note 2419592 includes further corrections for a code injection vulnerability in TREX that SAP originally patched through Note 2234226 in February 2016. The vulnerability affects the TREXNet protocol, which does not require any authentication and can be abused to execute dangerous commands, including OS commands, using the administrative privileges of the <SID>ADM user. Note 2235515 updates SNOTE to log information related to the RFC destination used to download notes, because SNOTE can be abused to download malicious packages from attacker controlled servers if the default RFC destination is changed. Notes 2410082, 2372301, 2400292 and 2387249 deal with weaknesses in XML input validation that expose several ABAP and Java applications to XXE attacks, with impacts including sensitive information disclosure and denial of service. Note 2407616 provides an update for saprules.xml to secure against a high-risk vulnerability that could enable attackers to execute remote commands against SAP GUI.
Key Takeaways
- Note 2419592 corrects a TREX code injection vulnerability in the TREXNet protocol, which needs no authentication.
- TREX 7.10 and 7.25 must be upgraded to revisions 74 and 37 respectively to apply the Note 2419592 corrections.
- Note 2235515 updates SNOTE to log the RFC destination used to download notes; Note 2235514 has more information.
- Notes 2410082, 2372301, 2400292 and 2387249 address XML input validation weaknesses that expose ABAP and Java applications to XXE attacks.
- Note 2407616 updates saprules.xml to secure SAP GUI against a high-risk remote command vulnerability.
What does SAP Note 2419592 correct in TREX?
Note 2419592 includes further corrections for a code injection vulnerability in TREX that was originally patched by SAP through Note 2234226 in February 2016. The vulnerability impacts the TREXNet protocol used for internal communications by TREX components and servers.
TREXNet communication does not require any authentication. Therefore, the protocol can be abused to execute dangerous commands including OS commands using the administrative privileges of the <SID>ADM user. As a result, SAP recommends running TREX in an isolated subnet. Detailed instructions are documented in the TREX Installation Guide.
However, the corrections included in Note 2419592 block access to the TREXNet interface from outside the TREX landscape. Therefore, it protects unsegmented systems against malicious commands targeting the protocol. TREX versions 7.10 and 7.25 must be upgraded to revisions 74 and 37 respectively to apply the corrections.
What does SAP Note 2235515 change in SNOTE?
Note 2235515 includes an important update for SNOTE to log information related to the RFC destination used to download notes. SNOTE can be abused to download malicious packages from attacker controlled servers if the default RFC destination is changed.
SNOTE executes program SCWN_NOTE_DOWNLOAD during runtime. The program will use an alternative RFC destination maintained in table CWBRFCUSR if a destination is defined in the table. For more information refer to Note 2235514.
Which SAP Notes address XML External Entity (XXE) attacks?
Notes 2410082, 2372301, 2400292 and 2387249 deal with weaknesses in XML input validation that expose several ABAP and Java applications to XML External Entity (XXE) attacks. The impact of successful XXE exploits include sensitive information disclosure and denial of service.
What does SAP Note 2407616 update in saprules.xml?
Finally, Note 2407616 provides an update for saprules.xml to secure against a high-risk vulnerability that could enable attackers to execute remote commands against SAP GUI. saprules.xml is used by the SAP GUI Security Module to protect clients against potentially malicious commands from back-end SAP servers.

Frequently Asked Questions
What does SAP Note 2419592 correct in TREX?
SAP Note 2419592 includes further corrections for a code injection vulnerability in TREX that SAP originally patched through Note 2234226 in February 2016. The vulnerability impacts the TREXNet protocol used for internal communications by TREX components and servers.
Why is the TREXNet protocol a risk addressed by SAP Note 2419592?
TREXNet communication does not require any authentication, so the protocol addressed in SAP Note 2419592 can be abused to execute dangerous commands, including OS commands, using the administrative privileges of the <SID>ADM user. The corrections in SAP Note 2419592 block access to the TREXNet interface from outside the TREX landscape, protecting unsegmented systems.
Which TREX versions need upgrading for SAP Note 2419592?
To apply the corrections in SAP Note 2419592, TREX versions 7.10 and 7.25 must be upgraded to revisions 74 and 37 respectively. SAP also recommends running TREX in an isolated subnet, with detailed instructions documented in the TREX Installation Guide.
What does SAP Note 2235515 change in SNOTE?
SAP Note 2235515 includes an important update for SNOTE to log information related to the RFC destination used to download notes. SNOTE can be abused to download malicious packages from attacker controlled servers if the default RFC destination is changed. For more information, refer to SAP Note 2235514.
How does SNOTE use an alternative RFC destination in SAP Note 2235515?
SAP Note 2235515 relates to SNOTE, which executes program SCWN_NOTE_DOWNLOAD during runtime. The program will use an alternative RFC destination maintained in table CWBRFCUSR if a destination is defined in the table. SAP Note 2235514 has more information.
What do SAP Notes 2410082, 2372301, 2400292 and 2387249 fix?
SAP Notes 2410082, 2372301, 2400292 and 2387249 deal with weaknesses in XML input validation that expose several ABAP and Java applications to XML External Entity (XXE) attacks. The impact of successful XXE exploits includes sensitive information disclosure and denial of service.
What does SAP Note 2407616 update in saprules.xml?
SAP Note 2407616 provides an update for saprules.xml to secure against a high-risk vulnerability that could enable attackers to execute remote commands against SAP GUI. saprules.xml is used by the SAP GUI Security Module to protect clients against potentially malicious commands from back-end SAP servers.