<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=Cybersecurity%2Fsaml_failure_modes</id>
	<title>Cybersecurity/saml failure modes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=Cybersecurity%2Fsaml_failure_modes"/>
	<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;action=history"/>
	<updated>2026-12-03T01:34:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1966&amp;oldid=prev</id>
		<title>Mflavell: /* The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale */</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1966&amp;oldid=prev"/>
		<updated>2026-11-25T06:44:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:44, 25 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l94&quot;&gt;Line 94:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;mTLS (Transport-Layer Workload Identity):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;hop-by-hop, machine-to-machine authentication&amp;#039;&amp;#039;&amp;#039;. It proves &amp;#039;&amp;#039;Service A is talking directly to Service B&amp;#039;&amp;#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &amp;#039;&amp;#039;&amp;#039;end-user context&amp;#039;&amp;#039;&amp;#039; across multi-hop call chains (Service A ➡️ Service B ➡️ Service C).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;mTLS (Transport-Layer Workload Identity):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;hop-by-hop, machine-to-machine authentication&amp;#039;&amp;#039;&amp;#039;. It proves &amp;#039;&amp;#039;Service A is talking directly to Service B&amp;#039;&amp;#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &amp;#039;&amp;#039;&amp;#039;end-user context&amp;#039;&amp;#039;&amp;#039; across multi-hop call chains (Service A ➡️ Service B ➡️ Service C).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OAuth / Signed JWTs (Application-Layer Delegation):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;end-user context, fine-grained scopes, and multi-hop propagation&amp;#039;&amp;#039;&amp;#039; across L7 boundaries. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OAuth / Signed JWTs (Application-Layer Delegation):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;end-user context, fine-grained scopes, and multi-hop propagation&amp;#039;&amp;#039;&amp;#039; across L7 boundaries. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Defense in Depth:&amp;#039;&amp;#039;&amp;#039; Combine both—use &amp;#039;&amp;#039;&amp;#039;mTLS with short-lived SPIFFE SVIDs&amp;#039;&amp;#039;&amp;#039; for transport-level workload identity, paired with &amp;#039;&amp;#039;&amp;#039;short-lived, sender-constrained / attenuated tokens&amp;#039;&amp;#039;&amp;#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&amp;#039;s full privileges elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Defense in Depth:&amp;#039;&amp;#039;&amp;#039; Combine both—use &amp;#039;&amp;#039;&amp;#039;mTLS with short-lived SPIFFE SVIDs&amp;#039;&amp;#039;&amp;#039; for transport-level workload identity, paired with &amp;#039;&amp;#039;&amp;#039;short-lived, sender-constrained / attenuated tokens&amp;#039;&amp;#039;&amp;#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&amp;#039;s full privileges elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-1965:rev-1966:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1965&amp;oldid=prev</id>
		<title>Mflavell: /* The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale */</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1965&amp;oldid=prev"/>
		<updated>2026-11-25T06:43:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:43, 25 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l93&quot;&gt;Line 93:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 93:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&amp;#039;&amp;#039; frame it around &amp;#039;&amp;#039;&amp;#039;layering, latency, and delegation&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&amp;#039;&amp;#039; frame it around &amp;#039;&amp;#039;&amp;#039;layering, latency, and delegation&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$\rightarrow$ &lt;/del&gt;Service B &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$\rightarrow$ &lt;/del&gt;Service C).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;➡️ &lt;/ins&gt;Service B &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;➡️ &lt;/ins&gt;Service C).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OAuth / Signed JWTs (Application-Layer Delegation):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;end-user context, fine-grained scopes, and multi-hop propagation&amp;#039;&amp;#039;&amp;#039; across L7 boundaries. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OAuth / Signed JWTs (Application-Layer Delegation):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;end-user context, fine-grained scopes, and multi-hop propagation&amp;#039;&amp;#039;&amp;#039; across L7 boundaries. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Defense in Depth:&amp;#039;&amp;#039;&amp;#039; Combine both—use &amp;#039;&amp;#039;&amp;#039;mTLS with short-lived SPIFFE SVIDs&amp;#039;&amp;#039;&amp;#039; for transport-level workload identity, paired with &amp;#039;&amp;#039;&amp;#039;short-lived, sender-constrained / attenuated tokens&amp;#039;&amp;#039;&amp;#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&amp;#039;s full privileges elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Defense in Depth:&amp;#039;&amp;#039;&amp;#039; Combine both—use &amp;#039;&amp;#039;&amp;#039;mTLS with short-lived SPIFFE SVIDs&amp;#039;&amp;#039;&amp;#039; for transport-level workload identity, paired with &amp;#039;&amp;#039;&amp;#039;short-lived, sender-constrained / attenuated tokens&amp;#039;&amp;#039;&amp;#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&amp;#039;s full privileges elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1964&amp;oldid=prev</id>
		<title>Mflavell at 05:08, 25 November 2026</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1964&amp;oldid=prev"/>
		<updated>2026-11-25T05:08:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:08, 25 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1. &lt;/del&gt;SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &amp;#039;&amp;#039;&amp;#039;what the XML signature verifier checks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;what the application parser actually extracts&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &amp;#039;&amp;#039;&amp;#039;what the XML signature verifier checks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;what the application parser actually extracts&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2. &lt;/del&gt;OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;OAuth 2.0 is &amp;#039;&amp;#039;&amp;#039;delegated authorization&amp;#039;&amp;#039;&amp;#039;; OIDC adds an &amp;#039;&amp;#039;&amp;#039;authentication layer&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;OAuth 2.0 is &amp;#039;&amp;#039;&amp;#039;delegated authorization&amp;#039;&amp;#039;&amp;#039;; OIDC adds an &amp;#039;&amp;#039;&amp;#039;authentication layer&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3. &lt;/del&gt;mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&amp;#039;&amp;#039;&amp;#039;certificate lifecycle management, revocation, and identity enforcement&amp;#039;&amp;#039;&amp;#039; are where systems fail.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&amp;#039;&amp;#039;&amp;#039;certificate lifecycle management, revocation, and identity enforcement&amp;#039;&amp;#039;&amp;#039; are where systems fail.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l90&quot;&gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 90:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4. &lt;/del&gt;The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&amp;#039;&amp;#039; frame it around &amp;#039;&amp;#039;&amp;#039;layering, latency, and delegation&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&amp;#039;&amp;#039; frame it around &amp;#039;&amp;#039;&amp;#039;layering, latency, and delegation&amp;#039;&amp;#039;&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1963&amp;oldid=prev</id>
		<title>Mflavell: Created page with &quot; == 1. SAML 2.0 Failure Modes (XML &amp; Assertion Trust) == SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &#039;&#039;&#039;what the XML signature verifier checks&#039;&#039;&#039; and &#039;&#039;&#039;what the application parser actually extracts&#039;&#039;&#039;. {| class=&quot;wikitable&quot; |&#039;&#039;&#039;Failure Mode&#039;&#039;&#039; |&#039;&#039;&#039;How It Breaks&#039;&#039;&#039; |&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039; |- |&#039;&#039;&#039;XML Signature Wrapping (XSW)&#039;&#039;&#039; |An attacker copies a legitimately signed &lt;code&gt;&lt;Assertion...&quot;</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1963&amp;oldid=prev"/>
		<updated>2026-11-25T05:08:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == 1. SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) == SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &amp;#039;&amp;#039;&amp;#039;what the XML signature verifier checks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;what the application parser actually extracts&amp;#039;&amp;#039;&amp;#039;. {| class=&amp;quot;wikitable&amp;quot; |&amp;#039;&amp;#039;&amp;#039;Failure Mode&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;How It Breaks&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;First-Principles Fix&amp;#039;&amp;#039;&amp;#039; |- |&amp;#039;&amp;#039;&amp;#039;XML Signature Wrapping (XSW)&amp;#039;&amp;#039;&amp;#039; |An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== 1. SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;br /&gt;
SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &amp;#039;&amp;#039;&amp;#039;what the XML signature verifier checks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;what the application parser actually extracts&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Failure Mode&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;How It Breaks&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;First-Principles Fix&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;XML Signature Wrapping (XSW)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt;, moves it to another element in the XML tree, and injects an unsigned, forged &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt; (e.g., &amp;lt;code&amp;gt;admin@company.com&amp;lt;/code&amp;gt;) where the app looks for it. The verifier validates the real signature, while the app reads the forged assertion.&lt;br /&gt;
|Validate against a strict XML schema before signature verification; ensure the application extracts identity &amp;#039;&amp;#039;&amp;#039;strictly from the exact DOM node&amp;#039;&amp;#039;&amp;#039;whose &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; was cryptographically verified.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;XML Comment Injection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|The app parses &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;user@company.com&amp;lt;!-- --&amp;gt;.evil.com&amp;lt;/code&amp;gt;. If the XML parser strips comments before lookup, &amp;lt;code&amp;gt;user@company.com.evil.com&amp;lt;/code&amp;gt; can authenticate as &amp;lt;code&amp;gt;user@company.com&amp;lt;/code&amp;gt; while the original signature remains valid.&lt;br /&gt;
|Canonicalize XML properly (&amp;lt;code&amp;gt;C14N&amp;lt;/code&amp;gt;without comments) or reject assertions containing XML comments inside &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; and attribute elements.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Assertion Replay&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|An attacker captures a valid SAML Response (via logs, XSS, or MITM) and replays it to the Assertion Consumer Service (ACS) endpoint to mint a new session.&lt;br /&gt;
|Enforce short &amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows, track consumed &amp;lt;code&amp;gt;Assertion ID&amp;lt;/code&amp;gt;s in a distributed cache until expiration, and validate &amp;lt;code&amp;gt;InResponseTo&amp;lt;/code&amp;gt; matches an active SP-initiated request ID (avoid IdP-initiated SSO where possible).&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Audience / Recipient Confusion&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|An assertion issued for App A is replayed against App B (which shares the same IdP). If App B only checks the IdP&amp;#039;s signature, it accepts App A&amp;#039;s token.&lt;br /&gt;
|Strictly validate &amp;lt;code&amp;gt;&amp;lt;Audience&amp;gt;&amp;lt;/code&amp;gt; (matches this SP&amp;#039;s EntityID) and &amp;lt;code&amp;gt;&amp;lt;Recipient&amp;gt;&amp;lt;/code&amp;gt;(matches this exact ACS URL).&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;XXE / Parser Abuse&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|A misconfigured XML parser resolves external entities (&amp;lt;code&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/code&amp;gt;) during SAML ingestion, leading to SSRF or local file disclosure.&lt;br /&gt;
|Disable DTDs and external entity resolution completely at the XML parser layer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;br /&gt;
OAuth 2.0 is &amp;#039;&amp;#039;&amp;#039;delegated authorization&amp;#039;&amp;#039;&amp;#039;; OIDC adds an &amp;#039;&amp;#039;&amp;#039;authentication layer&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Failure Mode&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;How It Breaks&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;First-Principles Fix&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Open Redirect / Loose &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Using wildcard or prefix matching on &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; lets an attacker redirect the authorization code (or token) to an attacker-controlled URL or an open redirector on the same domain, enabling account takeover.&lt;br /&gt;
|Enforce &amp;#039;&amp;#039;&amp;#039;exact string matching&amp;#039;&amp;#039;&amp;#039; against pre-registered &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; values. No wildcards, no path traversal.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Auth Code Interception &amp;amp; Injection&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|In public clients (SPAs, mobile) or shared environments, an attacker intercepts the authorization code in transit/history and exchanges it for tokens—or injects their own code into a victim&amp;#039;s session.&lt;br /&gt;
|Mandate &amp;#039;&amp;#039;&amp;#039;Authorization Code + PKCE (&amp;lt;code&amp;gt;S256&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&amp;#039; for &amp;#039;&amp;#039;all&amp;#039;&amp;#039; clients (both public and confidential). The attacker cannot redeem the code without the client&amp;#039;s &amp;lt;code&amp;gt;code_verifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;OAuth CSRF (Login CSRF)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Missing or unvalidated &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; lets an attacker force a victim&amp;#039;s browser to complete an OAuth callback tied to the &amp;#039;&amp;#039;attacker&amp;#039;s&amp;#039;&amp;#039; account (linking the victim&amp;#039;s activity or payment method to the attacker).&lt;br /&gt;
|Bind the authorization request to the user&amp;#039;s browser session via an unguessable, per-request &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter (or PKCE binding) and validate it strictly on callback.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;IdP Mix-Up Attack&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|When a client supports multiple IdPs, an attacker tricks the client into sending an authorization code issued by an honest IdP to a malicious IdP&amp;#039;s token endpoint.&lt;br /&gt;
|Verify the &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt; (issuer) parameter returned in the authorization response matches the exact authorization server that initiated the flow (&amp;lt;nowiki&amp;gt;RFC 9207&amp;lt;/nowiki&amp;gt; / &amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;JWT / OIDC Validation Flaws&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Accepting &amp;lt;code&amp;gt;&amp;quot;alg&amp;quot;: &amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;, &amp;#039;&amp;#039;&amp;#039;algorithm confusion&amp;#039;&amp;#039;&amp;#039; (signing an HS256 token with the server&amp;#039;s public RSA key), failing to check &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt;, or trusting an OAuth &amp;lt;code&amp;gt;access_token&amp;lt;/code&amp;gt; as proof of user login.&lt;br /&gt;
|Pin allowed algorithms server-side (never trust the JWT header&amp;#039;s &amp;lt;code&amp;gt;alg&amp;lt;/code&amp;gt;), validate &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt; (for OIDC replay defense), and never use an access token for authentication.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Bearer Token Replay&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Standard OAuth access tokens are bearer tokens—anyone who steals one (via XSS, leaked logs, or compromised proxy) can replay it until it expires.&lt;br /&gt;
|Keep access tokens short-lived, use &amp;#039;&amp;#039;&amp;#039;refresh token rotation with reuse detection&amp;#039;&amp;#039;&amp;#039; (revoking the whole token family on reuse), and adopt &amp;#039;&amp;#039;&amp;#039;sender-constrained tokens&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;DPoP&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;mTLS-bound tokens&amp;#039;&amp;#039;&amp;#039;) for high-value APIs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 3. mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;br /&gt;
In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&amp;#039;&amp;#039;&amp;#039;certificate lifecycle management, revocation, and identity enforcement&amp;#039;&amp;#039;&amp;#039; are where systems fail.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Failure Mode&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;How It Breaks&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;First-Principles Fix&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Broken Revocation (CRL / OCSP)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;CRLs&amp;#039;&amp;#039;&amp;#039; grow too large to fetch reliably; &amp;#039;&amp;#039;&amp;#039;OCSP&amp;#039;&amp;#039;&amp;#039;adds handshake latency, leaks privacy, and relies on &amp;#039;&amp;#039;&amp;#039;soft-fail&amp;#039;&amp;#039;&amp;#039; (if an attacker blocks the OCSP responder, the client accepts the revoked cert anyway—which is why major CAs like Let&amp;#039;s Encrypt ended OCSP support).&lt;br /&gt;
|For internal mTLS, &amp;#039;&amp;#039;&amp;#039;replace revocation with short-lived certificates&amp;#039;&amp;#039;&amp;#039; (1 to 24 hours) via automated issuance (&amp;#039;&amp;#039;&amp;#039;SPIFFE/SPIRE&amp;#039;&amp;#039;&amp;#039; or service mesh). If a key leaks, the blast radius expires automatically.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;CA as a Single Point of Failure (Thundering Herd)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Short-lived certs dramatically multiply issuance volume. If the internal CA suffers an outage or rate-limits during a cluster restart, valid workloads cannot renew certs and trigger a cascading production outage.&lt;br /&gt;
|Run highly available, regionally distributed intermediate CAs, use staggered jittered renewals (renew at ~50% TTL), and decouple workload runtime from CA reachability for the remaining cert lifetime.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;AuthN Confused with AuthZ&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|A service verifies that the client cert is signed by the internal CA, but never checks &amp;#039;&amp;#039;who&amp;#039;&amp;#039; the client is. Any compromised low-privilege microservice with a valid org cert can now call the payments database.&lt;br /&gt;
|Always extract and enforce authorization against the &amp;#039;&amp;#039;&amp;#039;SAN / SPIFFE ID&amp;#039;&amp;#039;&amp;#039; (e.g., &amp;lt;code&amp;gt;spiffe://prod.internal/ns/checkout/sa/api&amp;lt;/code&amp;gt;) rather than just trusting the CA chain.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Proxy / Edge Header Spoofing&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|An L7 load balancer terminates mTLS and passes the client identity downstream in a header (e.g., &amp;lt;code&amp;gt;X-Forwarded-Client-Cert&amp;lt;/code&amp;gt;). If the edge fails to strip attacker-supplied headers—or an internal caller bypasses the edge—attackers spoof any identity.&lt;br /&gt;
|Strip and overwrite identity headers unconditionally at the trust boundary, and enforce network-level isolation (or end-to-end mTLS) so backends only accept traffic from the trusted proxy.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Clock Skew &amp;amp; Silent Expiry&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Short-lived certs have tight &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows; NTP drift causes immediate handshake failures. Meanwhile, static certs outside the mesh (DBs, legacy LBs) silently expire and cause outages.&lt;br /&gt;
|Enforce strict NTP synchronization across nodes, build small grace windows into &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;, and maintain automated inventory/alerting across the &amp;#039;&amp;#039;entire&amp;#039;&amp;#039; certificate estate—not just the service mesh.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 4. The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;br /&gt;
&amp;#039;&amp;#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&amp;#039;&amp;#039; frame it around &amp;#039;&amp;#039;&amp;#039;layering, latency, and delegation&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;mTLS (Transport-Layer Workload Identity):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;hop-by-hop, machine-to-machine authentication&amp;#039;&amp;#039;&amp;#039;. It proves &amp;#039;&amp;#039;Service A is talking directly to Service B&amp;#039;&amp;#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &amp;#039;&amp;#039;&amp;#039;end-user context&amp;#039;&amp;#039;&amp;#039; across multi-hop call chains (Service A $\rightarrow$ Service B $\rightarrow$ Service C).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;OAuth / Signed JWTs (Application-Layer Delegation):&amp;#039;&amp;#039;&amp;#039; Best for &amp;#039;&amp;#039;&amp;#039;end-user context, fine-grained scopes, and multi-hop propagation&amp;#039;&amp;#039;&amp;#039; across L7 boundaries. &amp;#039;&amp;#039;&amp;#039;Limitation:&amp;#039;&amp;#039;&amp;#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Defense in Depth:&amp;#039;&amp;#039;&amp;#039; Combine both—use &amp;#039;&amp;#039;&amp;#039;mTLS with short-lived SPIFFE SVIDs&amp;#039;&amp;#039;&amp;#039; for transport-level workload identity, paired with &amp;#039;&amp;#039;&amp;#039;short-lived, sender-constrained / attenuated tokens&amp;#039;&amp;#039;&amp;#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&amp;#039;s full privileges elsewhere.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
</feed>