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

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

challenge/webfinger/challenge/resources/templates/search_profile.php

PHP · 2,458 bytes
<h2>Search Remote Profile</h2>

<form id="profile-search-form">
    <label for="profile_url">Enter Profile URL (e.g., <code>Palestine@masto.ai</code>):</label><br>
    <input type="text" id="profile_url" name="profile_url" required style="width: 100%; padding: 8px; margin: 10px 0;">
    <button type="submit">Search</button>
</form>

<div id="result" style="margin-top: 20px;"></div>

<script>
document.getElementById('profile-search-form').addEventListener('submit', async function (e) {
    e.preventDefault();

    const profileUrl = document.getElementById('profile_url').value;
    const resultDiv = document.getElementById('result');
    resultDiv.innerHTML = 'Searching...';

    try {
        const res = await fetch('/external-service.php', {
            method: 'POST',
            headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
            body: new URLSearchParams({
                methodname: 'fetch_profile',
                args: JSON.stringify({ profile_url: profileUrl })
            })
        });

        const data = await res.json();

        if (data.result) {
            const profile = data.data;
            const avatar = profile.links.find(link => link.rel === "http://webfinger.net/rel/avatar")?.href || '';
            const profilePage = profile.links.find(link => link.rel === "http://webfinger.net/rel/profile-page")?.href || '';

            resultDiv.innerHTML = `
                <article itemscope itemtype="https://schema.org/Person" style="border:1px solid #ccc; padding:15px; border-radius:8px; max-width:400px;">
                    <header style="text-align:center;">
                        <img src="${avatar}" alt="${profile.subject} avatar" itemprop="image" style="width:100px;height:100px;border-radius:50%;object-fit:cover;">
                        <h2 itemprop="name" style="margin-top:10px;">${profile.subject.replace('acct:', '')}</h2>
                    </header>
                    <p style="text-align:center;">
                        <a href="${profilePage}" itemprop="url" target="_blank" rel="noopener noreferrer">View Profile</a>
                    </p>
                </article>
            `;
        } else {
            resultDiv.innerHTML = `<p style="color:red;"><strong>Error:</strong> ${data.message}</p>`;
        }
    } catch (err) {
        resultDiv.innerHTML = `<p style="color:red;"><strong>Request failed:</strong> ${err.message}</p>`;
    }
});
</script>