Exploit database

GH-299166692df8d2afb0add45443b1c738

stealthmoud/react-server-cve-lab

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-55183

4 sources

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

Repository files3

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

vulnerable-app/app/page.js

JavaScript · 7,765 bytes
export default function Home() {
  return (
    <main style={{ 
      padding: '2rem', 
      fontFamily: 'system-ui, -apple-system, sans-serif',
      maxWidth: '1200px',
      margin: '0 auto'
    }}>
      <div style={{ 
        background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
        color: 'white',
        padding: '2rem',
        borderRadius: '10px',
        marginBottom: '2rem'
      }}>
        <h1 style={{ margin: '0 0 0.5rem 0' }}>
          React Server Components Security Lab
        </h1>
        <p style={{ margin: 0, opacity: 0.9 }}>
          Vulnerable to CVE-2025-55183 (Source Code Exposure) & CVE-2025-55184 (Denial of Service)
        </p>
      </div>

      <div style={{ 
        display: 'grid', 
        gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
        gap: '1.5rem',
        marginBottom: '2rem'
      }}>
        <div style={{ 
          padding: '1.5rem', 
          background: '#fff3cd', 
          border: '2px solid #ffc107',
          borderRadius: '8px'
        }}>
          <h3 style={{ marginTop: 0, color: '#856404' }}>⚠️ CVE-2025-55183</h3>
          <p style={{ color: '#856404', margin: 0 }}>
            <strong>Type:</strong> Source Code Exposure<br />
            <strong>Severity:</strong> Medium (CVSS 5.3)<br />
            <strong>Impact:</strong> Server source code and secrets can be leaked<br />
            <strong>Status:</strong> <span style={{ color: '#d9534f', fontWeight: 'bold' }}>VULNERABLE ✓</span>
          </p>
        </div>

        <div style={{ 
          padding: '1.5rem', 
          background: '#f8d7da', 
          border: '2px solid #dc3545',
          borderRadius: '8px'
        }}>
          <h3 style={{ marginTop: 0, color: '#721c24' }}>🔴 CVE-2025-55184</h3>
          <p style={{ color: '#721c24', margin: 0 }}>
            <strong>Type:</strong> Denial of Service<br />
            <strong>Severity:</strong> High (CVSS 7.5)<br />
            <strong>Impact:</strong> Server can be hung indefinitely<br />
            <strong>Status:</strong> <span style={{ color: '#d9534f', fontWeight: 'bold' }}>VULNERABLE ✓</span>
          </p>
        </div>
      </div>

      <div style={{ 
        background: '#e7f3ff', 
        padding: '1.5rem', 
        borderRadius: '8px',
        marginBottom: '2rem',
        border: '1px solid #2196F3'
      }}>
        <h2 style={{ marginTop: 0, color: '#0d47a1' }}>🔍 How to Test</h2>
        <p style={{ color: '#1565c0', marginBottom: '1rem' }}>
          This application contains vulnerable Server Actions. Use the scanner or exploit scripts to test:
        </p>
        
        <div style={{ 
          background: '#fff', 
          padding: '1rem', 
          borderRadius: '4px',
          fontFamily: 'monospace',
          fontSize: '0.9rem',
          marginBottom: '1rem'
        }}>
          <div style={{ marginBottom: '0.5rem', color: '#2e7d32' }}>
            # Test both vulnerabilities
          </div>
          <div style={{ color: '#000' }}>
            cd scanner<br />
            python scan.py http://localhost:3000
          </div>
        </div>

        <div style={{ 
          background: '#fff', 
          padding: '1rem', 
          borderRadius: '4px',
          fontFamily: 'monospace',
          fontSize: '0.9rem',
          marginBottom: '1rem'
        }}>
          <div style={{ marginBottom: '0.5rem', color: '#2e7d32' }}>
            # Test CVE-2025-55183 (Source Code Exposure)
          </div>
          <div style={{ color: '#000' }}>
            python exploits/exploit-55183.py http://localhost:3000
          </div>
        </div>

        <div style={{ 
          background: '#fff', 
          padding: '1rem', 
          borderRadius: '4px',
          fontFamily: 'monospace',
          fontSize: '0.9rem'
        }}>
          <div style={{ marginBottom: '0.5rem', color: '#2e7d32' }}>
            # Test CVE-2025-55184 (Denial of Service)
          </div>
          <div style={{ color: '#000' }}>
            python exploits/exploit-55184.py http://localhost:3000
          </div>
        </div>
      </div>

      <div style={{ 
        background: '#f5f5f5', 
        padding: '1.5rem', 
        borderRadius: '8px',
        marginBottom: '2rem'
      }}>
        <h2 style={{ marginTop: 0 }}>📋 Vulnerability Details</h2>
        
        <div style={{ marginBottom: '1.5rem' }}>
          <h3 style={{ color: '#ff9800', marginBottom: '0.5rem' }}>CVE-2025-55183: Source Code Exposure</h3>
          <ul style={{ color: '#555', lineHeight: '1.6' }}>
            <li>Exploits Server Actions to leak server-side source code</li>
            <li>Can expose hardcoded secrets, API keys, and business logic</li>
            <li>Attack vector: Malformed Server Action payloads</li>
            <li>No authentication required</li>
          </ul>
        </div>

        <div>
          <h3 style={{ color: '#f44336', marginBottom: '0.5rem' }}>CVE-2025-55184: Denial of Service</h3>
          <ul style={{ color: '#555', lineHeight: '1.6' }}>
            <li>Causes infinite promise recursion in Server Action deserialization</li>
            <li>Hangs the Node.js server process indefinitely</li>
            <li>Requires manual server restart to recover</li>
            <li>Single request can take down entire application</li>
          </ul>
        </div>
      </div>

      <div style={{ 
        background: '#d1ecf1', 
        padding: '1.5rem', 
        borderRadius: '8px',
        marginBottom: '2rem',
        border: '1px solid #bee5eb'
      }}>
        <h3 style={{ marginTop: 0, color: '#0c5460' }}>💡 Technical Information</h3>
        <table style={{ width: '100%', borderCollapse: 'collapse', color: '#0c5460' }}>
          <tbody>
            <tr style={{ borderBottom: '1px solid #bee5eb' }}>
              <td style={{ padding: '0.5rem', fontWeight: 'bold' }}>React Version</td>
              <td style={{ padding: '0.5rem' }}>19.0.0 (Vulnerable)</td>
            </tr>
            <tr style={{ borderBottom: '1px solid #bee5eb' }}>
              <td style={{ padding: '0.5rem', fontWeight: 'bold' }}>Next.js Version</td>
              <td style={{ padding: '0.5rem' }}>15.0.2 (Vulnerable)</td>
            </tr>
            <tr style={{ borderBottom: '1px solid #bee5eb' }}>
              <td style={{ padding: '0.5rem', fontWeight: 'bold' }}>Server Actions</td>
              <td style={{ padding: '0.5rem' }}>Enabled (Vulnerable endpoint)</td>
            </tr>
            <tr>
              <td style={{ padding: '0.5rem', fontWeight: 'bold' }}>Patched Versions</td>
              <td style={{ padding: '0.5rem' }}>React 19.0.3+, 19.1.4+, 19.2.3+</td>
            </tr>
          </tbody>
        </table>
      </div>

      <div style={{ 
        background: '#fff3cd', 
        padding: '1.5rem', 
        borderRadius: '8px',
        border: '1px solid #ffc107'
      }}>
        <h3 style={{ marginTop: 0, color: '#856404' }}>⚠️ Important Disclaimer</h3>
        <p style={{ color: '#856404', margin: 0, lineHeight: '1.6' }}>
          This is a <strong>deliberately vulnerable application</strong> for educational and security research purposes only. 
          Do not deploy to production environments. Only test on systems you own or have explicit permission to test.
          The vulnerabilities demonstrated here are real and can cause serious damage if misused.
        </p>
      </div>

      <div style={{ 
        marginTop: '2rem',
        textAlign: 'center',
        color: '#999',
        fontSize: '0.9rem'
      }}>
        <p>React Server Components Security Lab | Educational Use Only</p>
        <p>For more information, see DOCUMENTATION.md</p>
      </div>
    </main>
  )
}