SecurityContext

CVE-2021-25985: Factor App Framework - Session Hijacking

  • Cve: CVE-2021-25985
  • Name: Factor App Framework - Session Hijacking
  • Description: In Factor (App Framework & Headless CMS) v1.0.4 to v1.8.30, improperly invalidate a user’s session even after the user logs out of the application. In addition, user sessions are stored in the browser’s local storage, which by default does not have an expiration time. This makes it possible for an attacker to steal and reuse the cookies using techniques such as XSS attacks, followed by a local account takeover.
  • Impact: Attackers can steal session tokens via XSS, leading to potential account takeover and unauthorized access.
  • Remediation: Update to the latest version of Factor that addresses session management issues or implement secure session handling practices.
  • Vulnerability type: stored_xss
  • Vulnerability impact: information_disclosure, client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to perform XSS attacks to steal session tokens.
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0078
  • Epss percentile: 0.56846
  • Assignee: [email protected]
  • Published at: 2021-11-16T10:15:07Z
  • Age in days: 1834
  • Modified at: 2026-06-17T03:42:43Z
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25985
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-613DEPRECATED: Insufficient Session Expiration

References

UrlSourceTags
https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25985nvdThird Party Advisory
https://github.com/FactorJS/factor/blob/v1.8.30/%40factor/user/util.ts#L65nvd

Products

ProductAffectedPlatform boundSourcesUrl
darwin:factor>= 1.0.4, <= 1.8.30nonvd/v1/products/darwin/factor

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts