Cross-site Request Forgery (CSRF) Affecting ssddanbrown/bookstack package, versions <21.11


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SSDDANBROWNBOOKSTACK-2308232
  • published3 Dec 2021
  • disclosed3 Dec 2021
  • credithaxatron

Introduced: 3 Dec 2021

CVE-2021-3944  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade ssddanbrown/bookstack to version 21.11 or higher.

Overview

ssddanbrown/bookstack is a BookStack documentation platform

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via /register/confirm/{token}, when auto-login by the email confirmation link.

###POC:

1: Register account with the same username as our victim, an email confirmation will take place

2: Retrieve token from email.

3: Send a link http://[BOOKSTACK_APP_URL]/register/confirm/{token} to user.

4: When the user clicks the link, they will be logged into the account, even if they already have an active session on Bookstack.

CVSS Scores

version 3.1