Guest User

Untitled

a guest
May 2nd, 2026
79
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. # JavaScript File Analysis
  2.  
  3. This is a **bundled/minified production React application** (built with Webpack). Here's what I found:
  4.  
  5. ## Overview
  6.  
  7. 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`.
  8.  
  9. ## Technology Stack
  10.  
  11. - **React 17.0.2** + **ReactDOM 17.0.2**
  12. - **React Router** (v6.x) for routing
  13. - **React Bootstrap** (Modal, Button, Form, Alert, Container, etc.)
  14. - **Bootstrap Icons** (`xr`, `Nr`, `Or`, `Fr` are SVG icon components: `eye-slash`, `envelope`, `check-circle`, `info-circle`)
  15. - **prop-types**, **classnames**, **react-transition-group**
  16.  
  17. ## Application Functionality
  18.  
  19. The app is a **login portal** with the following features:
  20.  
  21. ### 1. Main Landing Page (`Hr` component)
  22. - Displays an emblem/logo background
  23. - Side panel with "Portal" branding
  24. - "Log In" button → redirects to `/applications/`
  25. - "Forgot your password?" link
  26. - Privacy Policy & Terms links
  27.  
  28. ### 2. Routes
  29. ```
  30. / → Login page
  31. /ResetPassword/:requestIdentifier → Password reset flow
  32. * → 404 error page
  33. ```
  34.  
  35. ### 3. Password Reset Flow (`Qr` component)
  36. - User enters email
  37. - Client-side validation:
  38. - Standard email regex
  39. - **Rejects common email domains** (gmail, yahoo, hotmail, etc. — list of ~100 personal providers) — suggests it's intended for **corporate/business emails only**
  40. - Sends to API: `POST /api/UserManagement/V1/sendReset`
  41.  
  42. ### 4. Reset Password Confirmation (`Kr` component)
  43. Multi-step flow:
  44. 1. **Validate reset request**: `POST /api/UserManagement/V1/existRequest`
  45. 2. **Set new password** with rules:
  46. - Min 8 characters
  47. - At least one uppercase, one lowercase, one digit, one symbol
  48. 3. **Validate password**: `POST /api/UserManagement/V1/validationPassword`
  49. 4. **Send OTP**: `POST /api/UserManagement/V1/sendOTPReset`
  50. 5. **Verify OTP**: `POST /api/UserManagement/V1/validationOTPReset`
  51. 6. **Reset password**: `POST /api/UserManagement/V1/resetPassword`
  52.  
  53. ### 5. Configuration (embedded JSON)
  54. ```json
  55. {
  56. "privacyPolicyUrl": "https://policies.redbull.com/.../privacy.html",
  57. "termsAndConditionsUrl": "https://policies.redbull.com/.../terms.html",
  58. "rejectCommonEmailDomains": true
  59. }
  60. ```
  61.  
  62. ### 6. API Backend
  63. Base URL: `/api` (relative — same origin)
  64.  
  65. ## Security Observations
  66.  
  67. ✅ **Good practices:**
  68. - Strong password complexity requirements
  69. - 2FA/OTP confirmation for password reset
  70. - Rejects personal email providers (corporate-only)
  71. - Server-side validation in addition to client-side
  72.  
  73. ⚠️ **Notes:**
  74. - All sensitive logic is server-side (the JS only orchestrates UI)
  75. - Uses `keepalive: true` on fetch calls (allows requests to complete after page unload)
  76. - No tokens visible — auth handled via cookies/session presumably set by `/applications/` endpoint
  77.  
  78. ## Build Info
  79. - Webpack module bundle
  80. - Last modified: Jan 31, 2024
  81. - Served from Microsoft IIS 10.0
  82. - Static assets in `static/media/` (SVG logos)
  83.  
  84. ## Summary
  85.  
  86. 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
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment