{"id":49231310,"url":"https://github.com/volksrat71/react2shellexploitvisualized","last_synced_at":"2026-04-24T12:02:26.244Z","repository":{"id":328541429,"uuid":"1114618462","full_name":"VolksRat71/react2shellexploitvisualized","owner":"VolksRat71","description":"Interactive visualization of the React2Shell (CVE-2025-55182) RCE vulnerability with narrated animations for three audiences: Expert, Practitioner, and  Stakeholder. Audio synced via ElevenLabs + Whisper.","archived":false,"fork":false,"pushed_at":"2025-12-14T00:18:02.000Z","size":28483,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-15T16:27:30.181Z","etag":null,"topics":["cve","cybersecurity","educational","elevenlabs","flight-protocol","rce","react","security","server-components","svelte","visulization","vunerability","whisper"],"latest_commit_sha":null,"homepage":"https://volksrat71.github.io/react2shellexploitvisualized/","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolksRat71.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-11T16:23:49.000Z","updated_at":"2025-12-14T00:18:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/VolksRat71/react2shellexploitvisualized","commit_stats":null,"previous_names":["volksrat71/react2shellexploitvisualized"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/VolksRat71/react2shellexploitvisualized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolksRat71%2Freact2shellexploitvisualized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolksRat71%2Freact2shellexploitvisualized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolksRat71%2Freact2shellexploitvisualized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolksRat71%2Freact2shellexploitvisualized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolksRat71","download_url":"https://codeload.github.com/VolksRat71/react2shellexploitvisualized/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolksRat71%2Freact2shellexploitvisualized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve","cybersecurity","educational","elevenlabs","flight-protocol","rce","react","security","server-components","svelte","visulization","vunerability","whisper"],"created_at":"2026-04-24T12:02:20.968Z","updated_at":"2026-04-24T12:02:26.239Z","avatar_url":"https://github.com/VolksRat71.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React2Shell (CVE-2025-55182) Visualization\n\nAn interactive educational visualization explaining the React2Shell vulnerability - a critical CVSS 10.0 remote code execution flaw in React Server Components.\n\n## What This Is\n\nA 5-step narrated walkthrough that explains:\n\n1. **Traditional SSR** - How server-side rendering works and the \"JSON bottleneck\" problem\n2. **RSC Streaming** - How React Server Components solve this with streaming\n3. **The Exploit** - How prototype pollution + gadget chains enable RCE\n4. **The Fix** - The one-line `hasOwnProperty` check that prevents the attack\n5. **Key Takeaways** - Lessons learned for secure architecture\n\nEach step features:\n- Synced audio narration with word-by-word captions\n- Keyframe-driven animations timed to the narration\n- Video player controls (play/pause, seek, speed, captions)\n- Visual highlighting of key concepts\n\n## Mobile Support\n\nThe visualization is fully responsive with a mobile-optimized experience:\n\n- **Auto-scrolling**: On mobile viewports (≤1000px), the page automatically scrolls to follow the animation. Scroll targets are driven by Whisper timestamp data, keeping the focal point (browser → network → server → explanation) in view as the narration progresses.\n- **Sticky video controls**: Play/pause and timeline controls stay fixed at the bottom for easy access while scrolling.\n- **Mobile captions**: Word-by-word captions appear in the video controls area on mobile.\n- **Responsive layouts**: Grids stack vertically, font sizes scale appropriately, and touch-friendly controls.\n\n## Multi-Audience Support\n\nThe visualization supports three audience levels, each with tailored narration:\n\n| Level | Audience | Style |\n|-------|----------|-------|\n| **Expert** | Security engineers, senior devs | Precise terminology, deep mechanics |\n| **Practitioner** | Developers, IT pros | Concepts with practical examples |\n| **Stakeholder** | Leadership, PMs | Business impact, key takeaways |\n\nUsers can switch between levels in real-time via the \"Target Audience\" dropdown in the video controls.\n\n## Tech Stack\n\n- **SvelteKit** with Svelte 5 runes\n- **ElevenLabs** for AI voice generation\n- **OpenAI Whisper** for audio transcription \u0026 timestamp extraction\n- **TypeScript** throughout\n\n## Project Structure\n\n```\n├── scripts/                    # Narration scripts (source of truth)\n│   ├── expert/\n│   │   ├── ssr-narration.txt\n│   │   ├── rsc-narration.txt\n│   │   ├── exploit-narration.txt\n│   │   ├── fix-narration.txt\n│   │   └── lessons-narration.txt\n│   ├── practitioner/\n│   │   └── ... (same files)\n│   ├── stakeholder/\n│   │   └── ... (same files)\n│   └── transcribe.py           # Whisper transcription script\n├── static/audio/               # Generated MP3 files\n│   ├── expert/\n│   │   ├── ssr.mp3\n│   │   ├── rsc.mp3\n│   │   ├── exploit.mp3\n│   │   ├── fix.mp3\n│   │   └── lessons.mp3\n│   ├── practitioner/\n│   │   └── ... (same files)\n│   └── stakeholder/\n│       └── ... (same files)\n├── src/lib/data/               # Whisper JSON output (word timestamps)\n│   ├── expert/\n│   │   ├── ssr-whisper.json\n│   │   └── ...\n│   ├── practitioner/\n│   │   └── ...\n│   └── stakeholder/\n│       └── ...\n└── src/lib/utils/triggers/     # Animation trigger phrases per level\n    ├── expert/\n    ├── practitioner/\n    └── stakeholder/\n```\n\n## Development\n\n```sh\nnpm install\nnpm run dev\n```\n\n## Changing the Voice / Narration\n\n### 1. Edit the script\nScripts are in `scripts/{level}/`:\n- `ssr-narration.txt`\n- `rsc-narration.txt`\n- `exploit-narration.txt`\n- `fix-narration.txt`\n- `lessons-narration.txt`\n\nEach script includes trigger phrase comments at the bottom for animation sync.\n\n### 2. Generate audio with ElevenLabs\nUpload the script to ElevenLabs and download the MP3.\n\n### 3. Place the audio file\nDrop the MP3 in `static/audio/{level}/` with the step name (e.g., `static/audio/expert/ssr.mp3`).\n\n### 4. Transcribe with Whisper\n\nSingle file:\n```sh\npython scripts/transcribe.py ssr expert\npython scripts/transcribe.py rsc practitioner\n```\n\nBatch mode (all files for a level):\n```sh\npython scripts/transcribe.py --batch expert\npython scripts/transcribe.py --batch practitioner\npython scripts/transcribe.py --batch stakeholder\npython scripts/transcribe.py --batch all          # All 15 files\n```\n\nOptions:\n- `--model small` - Use a larger Whisper model for better accuracy\n- `--dry-run` - Preview what would be transcribed without running\n\nThe script outputs JSON to `src/lib/data/{level}/` with word-level timestamps.\n\n### 5. Update trigger phrases (if needed)\nIf the narration wording changed significantly, update the trigger phrases in `src/lib/utils/triggers/{level}/` to match the new script.\n\n## How the Animation System Works\n\n1. **Whisper JSON** contains word-level timestamps for each audience level\n2. **Trigger extraction** (`src/lib/utils/triggers/`) finds key phrases per level\n3. **Keyframes** map timestamps to animation states\n4. **Timeline controller** (`src/lib/stores/timeline.svelte.ts`) syncs audio with animation\n5. **Components** derive visual state from `currentTime` using `getAnimationState()`\n6. **Lazy loading** fetches whisper data on-demand and caches it\n\n## Building for Production\n\n```sh\nnpm run build\nnpm run preview\n```\n\n## Resources\n\n- [react2shell.com](https://react2shell.com/) - Original disclosure\n- [Wiz Deep Dive](https://www.wiz.io/blog/nextjs-cve-2025-55182-react2shell-deep-dive)\n- [Datadog Security Labs](https://securitylabs.datadoghq.com/articles/cve-2025-55182-react2shell-remote-code-execution-react-server-components/)\n\n## License\n\nEducational purposes. Created for security awareness.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolksrat71%2Freact2shellexploitvisualized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolksrat71%2Freact2shellexploitvisualized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolksrat71%2Freact2shellexploitvisualized/lists"}