Crayon Syntax Highlighter <= 2.6.10 - Local File Disclosure



Description
The local file syntax highlighting feature of Crayon Syntax Highlighter doesn't check the path of the file to process. Also, by default, this feature is usable through public comments. This allows unauthenticated visitors to see the content of any file where the web server has read permissions, such as PHP source files or configuration files. 

CVSSv2 Base Score:  7.8 (AV:N/AC:L/Au:N/C:C/I:N/A:N)
Proof of Concept
For example, just by posting a comment containing the following code on a website using this plugin, an attacker could see the content of /etc/password :
<pre class="lang:php" data-url="/../../../../../../../../../../../../../../../../../../../../../../../etc/passwd"></pre>

Affects Plugin

fixed in version 2.7.0

References

URL http://www.kevinsubileau.fr/informatique/hacking-securite/crayon-syntax-highlighter-local-file-disclosure-vulnerability.html

Classification

Type LFI
OWASP Top 10 A1: Injection
CWE CWE-22

Miscellaneous

Submitter Kevin Subileau
Submitter Website http://www.kevinsubileau.fr
Submitter Twitter ksubileau
Views 4447
Verified No
WPVDB ID 7904

Timeline

Publicly Published 2015-04-14 (over 4 years ago)
Added 2015-04-15 (over 4 years ago)
Last Updated 2019-10-21 (23 days ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin