Exploit database

GH-0f1d9d379cff43fb3682f81df57d5bee

lstudlo/nextjs-cve-demo

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-29927

158 sources

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

Repository files1
lstudlo/nextjs-cve-demoRevision c8f7e4dd41c6

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

app/api/confidential/route.ts

TypeScript · 1,459 bytes
import { NextResponse } from "next/server";

export async function GET() {
	try {
		// This endpoint contains sensitive information and should be protected
		const confidentialData = {
			message: '✅ 已通過身份驗證存取機密 API!',
			timestamp: new Date().toISOString(),
			severity: 'INFO',
			data: {
				customerEmails: ['[email protected]', '[email protected]', '[email protected]'],
				internalSecrets: {
					databasePassword: 'super_secret_db_pass_123',
					apiKeys: {
						stripe: 'sk_live_123123456456789789',
						aws: 'AKIA1234567890ABCDEF',
						sendgrid: 'SG.123123456456789789'
					}
				},
				financialData: {
					revenue: '$2,400,000',
					expenses: '$1,800,000',
					profit: '$600,000',
					bankAccount: '1234-4321-4321-1234'
				},
				userMetrics: {
					totalUsers: 15420,
					premiumUsers: 3208,
					churnRate: '3.2%',
					averageRevPerUser: '$156'
				}
			},
			vulnerabilityNote: '此 endpoint 已通過 middleware 身份驗證檢查。',
			mitigation: 'Middleware 正常運作,已驗證使用者身份。'
		};
		
		return NextResponse.json(confidentialData, {
			status: 200,
			headers: {
				'Content-Type': 'application/json',
				'X-Security-Status': 'authenticated',
				'X-Protected-By': 'middleware'
			}
		});
	} catch (error) {
		console.error('API Error:', error);
		return NextResponse.json(
			{ error: 'Internal server error', details: error.message },
			{ status: 500 }
		);
	}
}