|
|
Line 1: |
Line 1: |
| =Attack description=
| | The attacker tries to persuade the victim to open a certain link. The attack is successful if the victim is logged into their account on the targeted Cloud Provider. An example of this type of attack is Certificate Injection, which is used for Cross-Site-Request-Forgery (CSRF) also so-called inquiry forgery. |
| ''Extensible Stylesheet Language Transformation (XSLT)'' is a language for transforming XML documents into other documents, for example, XML, HTML, JSON or even PDF. The XML Signature standard allows the usage of ''XSLT'' by definition, and thus, ''XSLT'' can be used in [http://www.sso-attacks.org/index.php?title=SAML SAML]. ''XSLT'' is a Turing complete language. By this means, it is possible to use XSLT, for example, to read/write files on the local filesystem and send them over the Internet. Furthermore, the ''XSLT'' transformation will be executed before the digital signature is verified. Thus, an attacker can send a ''SAML'' token including a digital signature containing the ''XSLT Attack (XSLTA)'' vector, but it is not required that the signature is valid.
| | [[File:MA3_.jpg|centre]] |
| | |
| XSLTA allows accessing files within the context of the used web server.
| |
| | |
| =Attack subtypes=
| |
| There are no attack subtypes for this attack.
| |
| | |
| | |
| | |
| =Prerequisites for attack=
| |
| In order to start XSLT, the attacker has to create a valid XML message containing a [https://en.wikipedia.org/wiki/Document_type_definition DTD]. Note, that the message has to be a SAML token. However, this token does not have to be signed with a valid key nor the signature needs to be valid.
| |
| | |
| =Graphical representation of attack=
| |
| [[File:XSLT.jpg|centre]]
| |
| | |
| | |
| | |
| =Attack example=
| |
| The attacker prepares a SAML token ''t'' and creates an XML Signature for it. Note, that it is not important to have a correctly computed signature value – the ''XSLTA'' only requires a well-formed XML document. The attacker adds a '''Transform''' element to the XML Signature and places the '''XSLT Payload''' in it as shown in Figure.
| |
| | |
| [[File:XSLT1.jpg|centre]] | |
| | |
| The attacker reads an arbitrary file using ''XSLT'' (in this example by using the ''unparsed-text()'' function). Afterwards, he forwards the contents of the file to his own server via a ''GET'' parameter.
| |
| | |
| =Attack mitigation / countermeasures=
| |
| The attack targets the [https://en.wikipedia.org/wiki/Single_sign-on SSO] Verificator. The SSO Verificator should mitigate the usage of ''XSLT'' within the token.
| |
| | |
| =Practical Attack Examples=
| |
| In 2014, Mainka et al. analyzed 22 Software as a Service cloud providers and found out that one framework was vulnerable to this attack: Instructure
| |
| | |
| [[Category:Attack_Categorisation_By_Attacker_Model:_Message_generation_attacks]]
| |
| [[Category:Attack_Categorisation_By_Violated_Security_Objective_Confidentiality]]
| |
| [[Category:Attack_Categorisation_By_Attack_on_IdP/_SP:_Attack_on_SP]]
| |
| [[Category:Attack_Categorisation_By_Attacked_Web_Service_Component:_XML_Parser]]
| |
| [[Category:Attack_Categorisation_By_Attack_Spreading:_Application_Specific_Flaws]]
| |
| [[Category:Attack_Categorisation_By_Attack_on_SAML]]
| |
| | |
| =References=
| |
| C. Mainka, V. Mladenov, F. Feldmann, J. Krautwald, J. Schwenk (2014): Your Software at my Service: Security Analysis of SaaS Single Sign-On Solutions in the Cloud. In The ACM Cloud Computing Security Workshop (CCSW).
| |