Back to Findings

Stored XSS in User Profile Bio

CriticalIn ProgressCVSS 3.1: 8.1CWE-79
TWP-002Tamkeen Web Portal9 months ago
Description

The user profile bio field does not properly sanitize HTML input, allowing stored cross-site scripting attacks. Malicious JavaScript can be injected that executes when other users view the profile.

Proof of Concept
Navigate to profile settings, insert `<img src=x onerror=alert(document.cookie)>` in the bio field. When any user views the profile, the script executes.
Remediation

Implement output encoding using a library like DOMPurify. Sanitize all user-generated content on both client and server side. Set Content-Security-Policy headers.

Comments (1)
AK
Ahmed K.9 months ago

Session tokens can be exfiltrated via this XSS. Combined with admin profile viewing, this could lead to full account takeover.

Details
Affected Assethttps://app.tamkeen.sa/profile
CVSS Score8.1
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
CWECWE-79