All Projects → CompassSecurity → Samlraider

CompassSecurity / Samlraider

Licence: mit
SAML2 Burp Extension

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Samlraider

salesforce-iam-flows
Node.js application that implements some of the most common SAML and OAuth flows in Salesforce.
Stars: ✭ 31 (-88.85%)
Mutual labels:  saml
workos-node
Official Node SDK for interacting with the WorkOS API
Stars: ✭ 42 (-84.89%)
Mutual labels:  saml
saml-service-provider
SAML Service Provider (SSO)
Stars: ✭ 13 (-95.32%)
Mutual labels:  saml
crowbar
Securily generates temporary AWS credentials through identity providers using SAML
Stars: ✭ 23 (-91.73%)
Mutual labels:  saml
sso-examples
Single Sign-On (SSO) examples for Metabase integration
Stars: ✭ 39 (-85.97%)
Mutual labels:  saml
SAML2
No description or website provided.
Stars: ✭ 81 (-70.86%)
Mutual labels:  saml
okta-spring-boot-saml-example
Spring Boot, SAML, and Okta
Stars: ✭ 52 (-81.29%)
Mutual labels:  saml
Omniauth Saml
A generic SAML strategy for OmniAuth
Stars: ✭ 272 (-2.16%)
Mutual labels:  saml
masl
Assume an AWS Role using Onelogin
Stars: ✭ 24 (-91.37%)
Mutual labels:  saml
assam
Get a credential by AssumeRoleWithSAML for AWS CLI and SDK
Stars: ✭ 28 (-89.93%)
Mutual labels:  saml
casdoor
An Identity and Access Management (IAM) / Single-Sign-On (SSO) platform with web UI supporting OAuth 2.0, OIDC, SAML and CAS, QQ group: 645200447
Stars: ✭ 4,147 (+1391.73%)
Mutual labels:  saml
wp-simple-saml
WordPress Simple SAML plugin
Stars: ✭ 73 (-73.74%)
Mutual labels:  saml
onelogin-aws-cli
Assume an AWS Role and cache credentials using Onelogin
Stars: ✭ 55 (-80.22%)
Mutual labels:  saml
SAML-tracer
Browser extension for examining SAML messages
Stars: ✭ 104 (-62.59%)
Mutual labels:  saml
aws-credentials-broker
AWS Credentials Broker - Grants temporary AWS credentials for Google federated users
Stars: ✭ 40 (-85.61%)
Mutual labels:  saml
webprofile-ref-project
A example project to demonstrate implementing SAML Web browser SSO profile using OpenSAML V2
Stars: ✭ 23 (-91.73%)
Mutual labels:  saml
passport-saml-example
PassportJS SAML example
Stars: ✭ 118 (-57.55%)
Mutual labels:  saml
Maxkey
MaxKey is Single Sign On(SSO) System,Leading-Edge Enterprise-Class open source IAM(Identity and Access management) product.
Stars: ✭ 274 (-1.44%)
Mutual labels:  saml
docker-lemonldap
Docker LemonLDAP-NG Image w/S6 overlay, Zabbix Monitoring based on Debian or Alpine
Stars: ✭ 20 (-92.81%)
Mutual labels:  saml
OpenAM
OpenAM is an open access management solution that includes Authentication, SSO, Authorization, Federation, Entitlements and Web Services Security.
Stars: ✭ 476 (+71.22%)
Mutual labels:  saml

SAML Raider - SAML2 Burp Extension

Description

SAML Raider is a Burp Suite extension for testing SAML infrastructures. It contains two core functionalities: Manipulating SAML Messages and manage X.509 certificates.

This software was created by Roland Bischofberger and Emanuel Duss during a bachelor thesis at the Hochschule für Technik Rapperswil (HSR). Our project partner and advisor was Compass Security Schweiz AG. We thank Compass for the nice collaboration and support during our bachelor thesis.

Features

The extension is divided in two parts. A SAML message editor and a certificate management tool.

Message Editor

Features of the SAML Raider message editor:

  • Sign SAML messages & assertions (signature spoofing attack)
  • Remove signatures (signature exclusion attack)
  • Edit SAML messages (SAMLRequest, SAMLResponse & custom parameter names)
  • Perform eight common XSW attacks
  • Insert XXE and XSLT attack payloads
  • Supported Profiles: SAML Webbrowser Single Sign-on Profile, Web Services Security SAML Token Profile
  • Supported Bindings: POST Binding, Redirect Binding, SOAP Binding, URI Binding

SAML Attacks:

SAML Attacks

SAML Message Info:

SAML Message Info

Certificate Management

Features of the SAML Raider Certificate Management:

  • Import X.509 certificates (PEM and DER format)
  • Import X.509 certificate chains
  • Export X.509 certificates (PEM format)
  • Delete imported X.509 certificates
  • Display informations of X.509 certificates
  • Import private keys (PKCD#8 in DER format and traditional RSA in PEM Format)
  • Export private keys (traditional RSA Key PEM Format)
  • Cloning X.509 certificates
  • Cloning X.509 certificate chains
  • Create new X.509 certificates
  • Editing and self-sign existing X.509 certificates

Certificate Management:

Certificate Management

Download

Download: saml-raider-1.4.0.jar

Installation

Manual Installation

Start the Burp Suite and click at the Extender tab on Add. Choose the SAML Raider JAR file to install the extension.

Installation from BApp Store

The easy way to install SAML Raider is using the BApp Store. Open Burp and click in the Extender tab on the BApp Store tab. Select SAML Raider and hit the Install button to install our extension.

Don't forget to rate our extension with as many stars you like 😄.

Usage Hints

To test SAML environments more comfortable, you could add a intercept rule in the proxy settings. Add a new rule which checks if a Parameter Name SAMLResponse is in the request. We hope the usage of our extension is mostly self explaining 😄. If you have questions, don't hesitate to ask us!

If you have a custom parameter name for a SAML message, this can be configured in the SAML Raider Certificates tab.

If you don't want to let SAML Raider parse your SAML message before sending to the server (e.g. when performing XXE attacks), use the raw mode.

Development

Burp Extender API

The Burp Extender API can be found here: https://portswigger.net/burp/extender/api/index.html.

Build

Clone the project into your workspace:

git clone https://github.com/SAMLRaider/SAMLRaider.git

Import existing project into your Eclipse workspace: FileImport...Existing Projects into Workspace. Select the cloned folder and press Finish.

Download the latest version of Burp Suite as a JAR file and place it in the lib folder.

Add the Burp Suite JAR file to the libraries: Rightclick on Project → PropertiesJava Build PathLibraries and add the JAR file.

Install maven so you can build SAMLRaider using the build automation tool Maven:

$ mvn install

You can also build it without executing the tests:

$ mvn install -Dmaven.test.skip=true

Load the Burp Extension into Burp: ExtenderAdd → select the JAR file (with dependencies) in the ./target directory of the project, like ./target/saml-raider-$VERSION-SNAPSHOT-jar-with-dependencies.jar.

Then you can test the extension and rebuild it again after a change.

Tipp: To reload the extension in Burp, without restarting Burp, hit the Ctrl key and click on the checkbox next to the extension in the Extender tab.

Run SAML Raider inside Eclipse

To start the Extension directly from Eclipse, import the Repository into Eclipse. You can directly import a existing Maven Project. Note that the Eclipse Maven Plugin m2e is required. This is included in the latest "Eclipse IDE for Java Developers".

Place the Burp Suite JAR file into the lib folder and add the Burp JAR as a Library in the Eclipse Project (PropertiesBuild PathLibraries).

Open the Burp JAR under Referenced Libraries in the Package Explorer and right click in the Package burp on StartBurp.class and select Run As...Java Application to start Burp and load the Extension automatically. (Or in Eclipse: RunDebug AsJava ApplicationStartBurp - burpOK.)

Debug Mode

To enable the Debug Mode, set the DEBUG Flag in the Class Flags from the Package helpers to true. This will write all output to the SAMLRaiderDebug.log logfile and load example certificates for testing.

Test with fake SAML Response

To send a SAML Response to Burp, you can use the script samltest in the scripts/samltest directory. It sends the SAML Response from saml_response to Burp (localhost:8080) and prints out the modified response from our plugin. You have to install gawk (GNU awk) as awk and libxml2-utils for the xmllint command.

Feedback, Bugs and Feature Requests

Feedback is welcome! Please contact us or create a new issue on GitHub.

Bachelor Thesis

Our Bachelor thesis is available online and can be found here: eprints_BA_SAML2_Burp_Plugin_SAML_Raider_eduss_rbischof.pdf.

License

See the LICENSE file (MIT License) for license rights and limitations.

References

SAML Raider is on the Internet :).

General

SAML Hacking Tutorials

Discovered Vulnerabilities using SAML Raider

Other

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].