Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

XSS attacks via ~designbaseurl, SAP security note 889454

SAP Note 889454
SAP Security Note
Low priority

SAP security note 889454, “XSS attacks via ~designbaseurl”, is a program error note released on 08.10.2009. Below are the symptom, SAP recommended solution and the affected software components.

ComponentBasis Components > Frontend Services (SAP Note 1322184) > SAP Internet Transaction Server
CategoryProgram error
PriorityCorrection with low priority
TypeSAP Security Note
Version5
StatusReleased for Customer
Released on08.10.2009
LanguageEnglish

Description

Symptom

When you start a service, the message “Security exploit” appears. In the trace, you can then find entries such as:

illegal host in ~designbaseurl=.......
WorkXSSFilter: possible xss exploit

Solution

Both the integrated ITS and the external ITS contain checks to avert possible cross-site scripting attacks. A possible attack could entail infiltration of a CSS file from an external host (in this case, a cascading style sheet) via the parameter ~designbaseurl. To prevent this, the ITS, by default, allows only the current host on which the integrated or external ITS is running to be specified in ~designbaseurl. To extend this to a complete domain, proceed as follows:

  • For the external ITS: In the Security/AllowDesignsFrom key in the registry, enter a list of permitted hosts or domains separated by commas, for example: <key name="Security"><value name="AllowDesignsFrom" type="text">myhost,.company.com</value></key>
  • For the integrated ITS: Set the parameter in the profile file as follows, for example: itsp/Security/allow_designs_from = myhost,.company.com. Enter the parameter blank in the local profile file to avoid possible error messages due to a parameter not being set. The error message does not occur and the system does not perform a check.
WarningDepending on the kernel patch used, this behavior may differ. It may only be reached as of a certain patch level. On this topic, see Note 1245048.

Reason and prerequisites

An insecure parameter has been specified for ~designbaseurl using the URL or service definition.

Affected components

  • BC-FES-ITS: Versions 620 to 630+
  • SAP_BASIS: Versions 640 to 640, 700 to 701, 710 to 710

Full note on SAP: SAP Support Launchpad note 889454

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

Explore More