Jupyter Notebook Forged Notebook Execute Arbitrary Code

Authors:vkgonka          Risk:High 

CVE:CVE-2018-8768       0day:Execute Arbitrary Code 

0day -id:0DAY-8768       Date:2018-04-24

Description

A vulnerability in Jupyter Notebook could allow an unauthenticated, remote attacker to execute arbitrary code on a targeted system.

The vulnerability is due improper sanitization of notebook files by the affected software. The jQuery component used by the affected software fixes invalid HTML after sanitization. An attacker could exploit this vulnerability by persuading a user to open a notebook file that submits malicious input to the affected software. A successful exploit could allow the attacker to execute arbitrary JavaScript code in the context of the targeted user. If the user has elevated privileges, an exploit could result in a complete system compromise.

Project Jupyter has confirmed the vulnerability and released software updates.

Analysis

To exploit the vulnerability, the attacker must have local access to the targeted system or use misleading language or instructions to persuade a user to open or execute a notebook file that submits malicious input to the system.

Safeguards

Administrators are advised to apply the appropriate updates.

Administrators are advised to allow only trusted users to have network access.

Users are advised not to open email messages from suspicious or unrecognized sources. If users cannot verify that links or attachments included in email messages are safe, they are advised not to open them.

Users are advised not to visit websites or follow links that have suspicious characteristics or that cannot be verified as safe.

Administrators are advised to use an unprivileged account when browsing the Internet.

Administrators are advised to monitor critical systems.

Vendor Announcements

Project Jupyter has released a git commit at the following link:
commit 4e79ebb49acac722b37b03f1fe811e67590d3831

Fixed Software

Project Jupyter has released software updates at the following link: Notebook 5.4.1

Revision History

Version Description Section Date
1 Initial public release. 2018-April-23

Affected Products

The security vulnerability applies to the following combinations of products. 

Primary Products
Project Jupyter notebook 4.0 (.0, .1, .2, .3, .4, .5, .6) | 4.1 (.0) | 4.2 (.0, .1, .2, .3) | 4.3 (.0, .1, .2) | 4.4 (.0, .1) | 5.0 (.0) | 5.1 (.0) | 5.2 (.0, .1, .2) | 5.3 (.0, .1) | 5.4 (.0)

Leave a Reply