Skip to content

[HIGH] Cross-Site Scripting (XSS) in User Profile #23

Description

@hacktron-app-dev

Severity: high
Category: vulnerability
Triage Status: new
Validation: Human: valid | LLM: valid


Description

The user profile page does not properly sanitize user input before rendering it in the HTML. An attacker can inject malicious JavaScript code through the bio field that will execute in other users browsers when they view the profile.

Proof of Concept

  1. Navigate to profile settings
  2. Set bio to: <script>alert(document.cookie)</script>
  3. Save profile
  4. When another user views your profile, the script executes and displays their cookies

Vulnerable Code

File: src/components/UserProfile.tsx:78

<div className="bio">{user.bio}</div>

Metadata

  • Finding ID: 850e8400-e29b-41d4-a716-446655440102
  • Found By: hacktron_xss_scanner
  • Validated By: hacktron_llm_validator
  • Duplicate Of: N/A
  • Reported At: 2025-12-03T17:11:37.303Z

This issue was automatically created by Hacktron security scanning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions