<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Suid on rchitect</title><link>https://www.rchitect.in/tags/suid/</link><description>Recent content in Suid on rchitect</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 28 Apr 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://www.rchitect.in/tags/suid/index.xml" rel="self" type="application/rss+xml"/><item><title>Systemctl privilege escalation</title><link>https://www.rchitect.in/posts/systemctl/</link><pubDate>Thu, 28 Apr 2022 00:00:00 +0000</pubDate><guid>https://www.rchitect.in/posts/systemctl/</guid><description>&lt;h1 id="systemctl-suid-enabled-privilege-escalation"&gt;
 Systemctl (suid enabled) privilege escalation
 &lt;a class="heading-link" href="#systemctl-suid-enabled-privilege-escalation"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;h5 id=""&gt;
 
 &lt;a class="heading-link" href="#"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h5&gt;
&lt;p&gt;Sceanrio: We have initial shell and during the checks we have found a systemctl file is enabled with SUID bit. refer below:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;find / -perm -u=s -type f 2&amp;gt;/dev/null
/bin/fusermount
/bin/mount
/bin/ping
/bin/systemctl
/bin/umount
/bin/su
/usr/bin/newgrp
/usr/bin/passwd
/usr/bin/gpasswd
/usr/bin/chsh
/usr/bin/sudo
/usr/bin/chfn
/usr/lib/eject/dmcrypt-get-device
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As per checking GTFO site, its says as below&lt;/p&gt;</description></item></channel></rss>