Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-7r9x-qrpr-3cxw — mofh

⚪ Unknown ✅ No Known Exploit CWE-611 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

mofh Vulnerable to Improper Restriction of XML External Entity Reference

The xml.etree.ElementTree module that mofh used up until version 1.0.1 implements a simple and efficient API for parsing and creating XML data. But it makes the application vulnerable to:

  • [Billion Laughs attack](https://en.wikipedia.org/wiki/Billion_laughs_attack): It is a type of denial-of-service attack aimed at XML parsers. It uses multiple levels of nested entities. If one large entity is repeated with a couple of thousand chars repeatedly, the parser gets overwhelmed.
  • [Quadratic blowup attack](https://www.acunetix.com/vulnerabilities/web/xml-quadratic-blowup-denial-of-service-attack/): It is similar to a Billion Laughs attack. It abuses entity expansion, too. Instead of nested entities, it repeats one large entity with a couple of thousand chars repeatedly.

The Problem has been patched starting from version 1.0.1 by utilising the defusedxml package instead of xml.etree.ElementTree.

Workarounds

For this vulnerability to be exploited the user must be using a custom API URL, which has to be manually given using the api_url argument, or MyOwnFreeHost's API must be hacked. So, if the user did not use a custom API URL they _should_ be fine, however, upgrading is still advised.

Another workaround could be to call defusedxml.defuse_stdlib() before making any requests using the client.

Weakness class

GHSA-7r9x-qrpr-3cxw is classified as CWE-611: XML External Entity Reference (XXE). An XML parser resolves external entities, letting a crafted document read local files or reach internal services.

Affected software

GHSA-7r9x-qrpr-3cxw is recorded against 1 package.

  • mofh (fixed in 1.0.1)

Timeline and source

Published on 11 August 2022 and last revised on 3 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)
www.acunetix.com (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE CWE-611
Public Exploit ✅ No
Source OSV
Published 2022-08-11
Updated 2026-08-20
Modified 2024-12-03
Fix URL N/A

Affected Packages

Software From version Fixed in
mofh 1.0.1

Free Vulnerability Check

Is your site affected by GHSA-7r9x-qrpr-3cxw?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-7r9x-qrpr-3cxw and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.