Skip to content

Clickjacking with social links - users Profile

Moderate
raisedadead published GHSA-6c37-r62q-7xf4 Jul 18, 2023

Package

api-server (freeCodeCamp API)

Affected versions

staging, production

Patched versions

staging, production

Description

Impact

Users who visit a profile and see a social website icon may fall victim to phishing and other dangerous actions due to a lack of validation, specifically clickjacking.

Example: If a user clicks on another user's Twitter icon, they expect to see that user's genuine Twitter account and not be redirected to a malicious or dangerous site.

Reproduction

  1. Log in and navigate to the Settings section (accessible via the Menu or Settings Link).
  2. Scroll down to the "Your Internet Presence" section and enter random site URLs for GitHub, Twitter, and LinkedIn.
  3. Save the changes, check your profile, and click on the social media icons.
  4. It can be confirmed that random links can be added to bonafide social icons, which could lead to Clickjacking.

Patches

Patches have been applied to the staging and production versions of the API

Workarounds

Not Applicable

Credits

This security concern was identified by Michal Biesiada.

Severity

Moderate
4.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

CVE ID

No known CVE

Weaknesses

No CWEs