FreeBSD : mdbook -- XSS in mdBook's search page (40b481a9-9df7-11eb-9bc3-8c164582fbac)

medium Nessus Plugin ID 148697

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

Rust Security Response Working Group reports :

The search feature of mdBook (introduced in version 0.1.4) was affected by a cross site scripting vulnerability that allowed an attacker to execute arbitrary JavaScript code on an user's browser by tricking the user into typing a malicious search query, or tricking the user into clicking a link to the search page with the malicious search query prefilled.

mdBook 0.4.5 fixes the vulnerability by properly escaping the search query.

Solution

Update the affected package.

See Also

http://www.nessus.org/u?9686e252

http://www.nessus.org/u?77949aa6

http://www.nessus.org/u?03875261

http://www.nessus.org/u?1480703b

http://www.nessus.org/u?162c14d7

Plugin Details

Severity: Medium

ID: 148697

File Name: freebsd_pkg_40b481a99df711eb9bc38c164582fbac.nasl

Version: 1.3

Type: local

Published: 4/16/2021

Updated: 1/4/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.0

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2020-26297

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:mdbook, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 4/15/2021

Vulnerability Publication Date: 4/1/2021

Reference Information

CVE: CVE-2020-26297