<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Privilege Escalation on The David Page</title><link>https://thedavidpage.pages.dev/tags/privilege-escalation/</link><description>Recent content in Privilege Escalation on The David Page</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sat, 01 Aug 2026 09:00:00 +0700</lastBuildDate><atom:link href="https://thedavidpage.pages.dev/tags/privilege-escalation/index.xml" rel="self" type="application/rss+xml"/><item><title>iam:PassRole + Wildcard: The Privilege Escalation Hiding in Plain Sight</title><link>https://thedavidpage.pages.dev/posts/cloud/aws/iam/iam-passrole-privilege-escalation/</link><pubDate>Sat, 01 Aug 2026 09:00:00 +0700</pubDate><guid>https://thedavidpage.pages.dev/posts/cloud/aws/iam/iam-passrole-privilege-escalation/</guid><description>&lt;p&gt;&lt;strong&gt;A developer account with nothing but &lt;code&gt;lambda:CreateFunction&lt;/code&gt; and a wildcard &lt;code&gt;iam:PassRole&lt;/code&gt; can walk itself up to full Administrator — no exploit, no misconfigured bucket, just permissions doing exactly what they were asked to do.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Hi everyone 👋&lt;/p&gt;
&lt;p&gt;This one doesn&amp;rsquo;t show up as a vulnerability scan finding or a CVE — it&amp;rsquo;s a permissions grant that looks completely reasonable in a policy review, right up until someone connects the dots.&lt;/p&gt;
&lt;h2 id="-the-convenient-habit"&gt;😱 The convenient habit&lt;/h2&gt;
&lt;p&gt;To make deployments easier, it&amp;rsquo;s extremely common to grant developer accounts &lt;code&gt;iam:PassRole&lt;/code&gt; against &lt;code&gt;*&lt;/code&gt; (a wildcard covering every role in the account). The reasoning is simple and, on its own, sounds harmless: developers need to attach an IAM role to whatever they deploy — a Lambda function, an EC2 instance — and wildcarding &lt;code&gt;PassRole&lt;/code&gt; means nobody has to update a policy every time a new role gets created.&lt;/p&gt;</description></item></channel></rss>