Exploit database

GH-5df13e7e453bfb9af5062e1ec37aa2b2

hxuu/moodle-cve

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-26529

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
hxuu/moodle-cveRevision 85ae0daa3cb9

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

challenge/public_html/admin/logs_api.php

PHP · 458 bytes
<?php
require_once __DIR__ . '/../../resources/config.php';

if (!isset($_SESSION['user']) || $_SESSION['user']['role'] !== 'admin') {
    http_response_code(403);
    exit('Access denied');
}

$logs = [];
$stmt = $db->prepare('SELECT * FROM logs ORDER BY created_at DESC LIMIT 30');
$result = $stmt->execute();

while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
    $logs[] = $row;
}

header('Content-Type: application/json');
echo json_encode($logs);
?>