Exploit databaseDownload repository ZIP
GH-ea9a42220653a920f5cf36a1e45dc902
0xpb1/next.js-cve-2025-29927
Sources for CVE-2025-29927
158 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
0xpb1/next.js-cve-2025-29927Revision 459285d633b5
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
pages/admin/index.js
JavaScript · 1,220 bytesimport { useRouter } from 'next/router'
import Cookies from 'js-cookie'
export default function Admin() {
const router = useRouter()
const handleLogout = () => {
Cookies.remove('auth_token')
router.push('/login')
}
return (
<div style={{
padding: '2rem',
fontFamily: 'Arial, sans-serif'
}}>
<div style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: '2rem'
}}>
<h1>Admin Dashboard</h1>
<button
onClick={handleLogout}
style={{
padding: '0.5rem 1rem',
backgroundColor: '#ff4444',
color: 'white',
border: 'none',
borderRadius: '4px',
cursor: 'pointer'
}}
>
Logout
</button>
</div>
<div style={{
backgroundColor: 'white',
padding: '2rem',
borderRadius: '8px',
boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
}}>
<h2>Welcome to the Admin Dashboard</h2>
<p>This is a protected page that only authenticated users can access.</p>
<p>You are logged in as: admin</p>
</div>
</div>
)
}