Bugs With URL Parsing Libraries Could Allow DoS, RCE, Spoofing & More

The cybersecurity researchers at Synk and Team82 have recently identified multiple bugs in URL parsing libraries that could allow attackers to perform several attacks and among them the most brutal attacks are like:-

  • DoS (Denial-of-service)
  • Remote code execution (RCE)
  • Spoofing
  • Data Breaches

While due to these bugs various web apps are also impacted, and it is claimed that all these bugs are raised from the inconsistencies of the affected parsing libraries.

In analysis, a total of 16 URL parsing libraries was analyzed and among them, it has been found that eight vulnerabilities that are largely occurred due to the following reasons:-

  • Multiple Parsers in Use
  • Specification Incompatibility

And here we have also mentioned those eight vulnerabilities below:-

  • Flask-security (Python, CVE-2021-23385)
  • Flask-security-too (Python, CVE-2021-32618)
  • Flask-User (Python, CVE-2021-23401)
  • Flask-unchained (Python, CVE-2021-23393)
  • Belledonne’s SIP Stack (C, CVE-2021-33056)
  • Video.js (JavaScript, CVE-2021-23414)
  • Nagios XI (PHP, CVE-2021-37352)
  • Clearance (Ruby, CVE-2021-23435)

URL Parsing Inconsistencies Discovered

In total five categories of URL parsing inconsistencies were discovered and here they are:-

  • Scheme Confusion: A confusion involving URLs with missing or malformed Schemes.
  • Slash Confusion: A confusion involving URLs containing an irregular number of slashes.
  • Backslash Confusion: A confusion involving URLs containing backslashes (\).
  • URL Encoded Data Confusion: A confusion involving URLs containing URL Encoded data.
  • Scheme Mixup: A confusion involving parsing a URL belonging to a certain scheme without a scheme-specific parser.

Moreover, for exploitation, the open-redirect vulnerabilities are famous among threat actors and they are used broadly since they allow the attacker to perform the attacks like:-

When a user-controlled input was accepted by a web application, it automatically redirects the user after a certain action through the URL that was specified by the web application.

In short, in this event by exploiting this technique the threat actors redirects the users to a malicious look-alike website and then exploit them.

Countermeasure

Here are the best security practices that are needed to be followed and also recommended by the experts are mentioned below:-

  • Try to use as few distinct parsers as possible.
  • Transfer a parsed URL across a microservice environment.
  • Understand differences in parsers involved with application business logic.
  • Always canonicalize the URL before parsing.
  • Avoid using old passwords and regularly check your password on your PC.
  • Always use two-factor authentication.

Since these types of attacks are sophisticated, stealthy, and increasing rapidly, so, to avoid or protect the web apps from hackers the developers have to follow and adopt robust security practices that are mentioned above.

You can follow us on LinkedinTwitterFacebook for daily Cybersecurity updates

Balaji

BALAJI is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Recent Posts

PoC Released for Critical PuTTY Private Key Recovery Vulnerability

Security researchers have published a Proof-of-Concept (PoC) exploit for a critical vulnerability in the widely used PuTTY SSH and Telnet…

13 hours ago

HackCar – Attack AND Defense Playground For Automotive System

Modern cars have microcontrollers that use the Controller Area Network (CAN) to perform safety and luxury functions.  However, vehicle hijacking…

16 hours ago

DDoS Attack Size Increased by 233.33%, UDP-Based are Popular

The latest Nexusguard DDoS Trend Report for 2024 has unveiled a significant escalation in the size of Distributed Denial of…

1 day ago

New LLMjacking Used Stolen Cloud Credentials to Attack Cloud LLM Servers

Researchers have identified a new form of cyberattack termed "LLMjacking," which exploits stolen cloud credentials to hijack cloud-hosted large language…

1 day ago

HijackLoader Malware Attack Windows Via Weaponized PNG Image

In a recent cybersecurity breakthrough, researchers have unveiled significant updates to the HijackLoader malware, a sophisticated modular loader notorious for…

1 day ago

North Korean Hackers Abusing Facebook & MS Management Console

The North Korean hacking group known as Kimsuky has been reported to employ sophisticated methods involving social media platforms and…

2 days ago