---
title: "SAML Attacks"
section: "Web Pentesting"
sectionSlug: "pentesting-web"
sourcePath: "src/pentesting-web/saml-attacks/README.md"
sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/pentesting-web/saml-attacks/README.md"
sha: "188de82beb54e70956b2952367a0af91d26758b8"
isIndex: true
modified: true
license: "CC-BY-NC-4.0"
---
# SAML Attacks
## Basic Information
The first part of the referenced SAML testing methodology covers request collection, decoding, and baseline validation checks that should precede the attacks on this page.[[14]](#references)
[Saml Basics](/hacktricks/pentesting-web/saml-attacks/saml-basics)
## Tool
[**SAMLExtractor**](https://github.com/fadyosman/SAMLExtractor) accepts a URL or URL list and reports discovered SAML consumer endpoints.
## XML round-trip
An XML implementation may parse or serialize a document before checking the in-memory signed structure. Ideally this round trip preserves the data, but parser differentials can make **the data validated by the signature differ from the data later processed by the application**.
For example, check the following code:
```ruby
require 'rexml/document'
doc = REXML::Document.new <]>