Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # JavaScript File Analysis
- This is a **bundled/minified production React application** (built with Webpack). Here's what I found:
- ## Overview
- It's the main JS bundle (`main.26049820.js`) for a **login/authentication portal** application — appears to be a Red Bull-related "Portal" based on the privacy policy URL referencing `redbull.com`.
- ## Technology Stack
- - **React 17.0.2** + **ReactDOM 17.0.2**
- - **React Router** (v6.x) for routing
- - **React Bootstrap** (Modal, Button, Form, Alert, Container, etc.)
- - **Bootstrap Icons** (`xr`, `Nr`, `Or`, `Fr` are SVG icon components: `eye-slash`, `envelope`, `check-circle`, `info-circle`)
- - **prop-types**, **classnames**, **react-transition-group**
- ## Application Functionality
- The app is a **login portal** with the following features:
- ### 1. Main Landing Page (`Hr` component)
- - Displays an emblem/logo background
- - Side panel with "Portal" branding
- - "Log In" button → redirects to `/applications/`
- - "Forgot your password?" link
- - Privacy Policy & Terms links
- ### 2. Routes
- ```
- / → Login page
- /ResetPassword/:requestIdentifier → Password reset flow
- * → 404 error page
- ```
- ### 3. Password Reset Flow (`Qr` component)
- - User enters email
- - Client-side validation:
- - Standard email regex
- - **Rejects common email domains** (gmail, yahoo, hotmail, etc. — list of ~100 personal providers) — suggests it's intended for **corporate/business emails only**
- - Sends to API: `POST /api/UserManagement/V1/sendReset`
- ### 4. Reset Password Confirmation (`Kr` component)
- Multi-step flow:
- 1. **Validate reset request**: `POST /api/UserManagement/V1/existRequest`
- 2. **Set new password** with rules:
- - Min 8 characters
- - At least one uppercase, one lowercase, one digit, one symbol
- 3. **Validate password**: `POST /api/UserManagement/V1/validationPassword`
- 4. **Send OTP**: `POST /api/UserManagement/V1/sendOTPReset`
- 5. **Verify OTP**: `POST /api/UserManagement/V1/validationOTPReset`
- 6. **Reset password**: `POST /api/UserManagement/V1/resetPassword`
- ### 5. Configuration (embedded JSON)
- ```json
- {
- "privacyPolicyUrl": "https://policies.redbull.com/.../privacy.html",
- "termsAndConditionsUrl": "https://policies.redbull.com/.../terms.html",
- "rejectCommonEmailDomains": true
- }
- ```
- ### 6. API Backend
- Base URL: `/api` (relative — same origin)
- ## Security Observations
- ✅ **Good practices:**
- - Strong password complexity requirements
- - 2FA/OTP confirmation for password reset
- - Rejects personal email providers (corporate-only)
- - Server-side validation in addition to client-side
- ⚠️ **Notes:**
- - All sensitive logic is server-side (the JS only orchestrates UI)
- - Uses `keepalive: true` on fetch calls (allows requests to complete after page unload)
- - No tokens visible — auth handled via cookies/session presumably set by `/applications/` endpoint
- ## Build Info
- - Webpack module bundle
- - Last modified: Jan 31, 2024
- - Served from Microsoft IIS 10.0
- - Static assets in `static/media/` (SVG logos)
- ## Summary
- This is a **legitimate, well-structured login/password-reset portal** for what appears to be an **internal Red Bull corporate application**. Nothing obviously malicious — it's standard React + Bootstrap with a typical password reset flow including OTP verification. The most distinctive feature is the **rejection of consumer email domains**, indicating it's meant for B2B/internal employee use.
Advertisement