WRITE-UP N1CTF 2025
dev.to·3h·
Discuss: DEV
Flag this post

[Web]N1SAML

This is the challenge I had spend 90% of time to do but I didn’t solve this challenge on time, so sad. Basically, this is a group of go(lang) servers to SSO using SAML. This workflow is similar to this:

The service provider is “sp” docker service. The Identity Provider (IDP) is not here, but the config is point to https://exp10it.io/ server.

We can only get the flag at step (7) when SAML assertion is valid and authentication is correct as following code:

The challenge exposed only healthcheck service’s port to internet. To reach the step (1) – the internal SSO service, we should get RCE on healthcheck server. There is a feature on this server that we can make curl command with any argument:

From [this crazy report (https://hackerone.com/rep…

Similar Posts

Loading similar posts...