Skip to content

Formwork has a cross-site scripting (XSS) vulnerability in Site title

Moderate severity GitHub Reviewed Published Feb 28, 2025 in getformwork/formwork

Package

composer getformwork/formwork (Composer)

Affected versions

= 2.0.0-beta.3

Patched versions

None

Description

Summary

The site title field at /panel/options/site/allows embedding JS tags, which can be used to attack all members of the system. This is a widespread attack and can cause significant damage if there is a considerable number of users.

Impact

The attack is widespread, leveraging what XSS can do. This will undoubtedly impact system availability.

Patches

Details

By embedding "<!--", the source code can be rendered non-functional, significantly impacting system availability. However, the attacker would need admin privileges, making the attack more difficult to execute.

PoC

image

  1. The page where the vulnerability was found, and the attack surface is the Title field.
    image

  2. I tested accessing the Dashboard page using a regular user account with Firefox, a different browser, and found that it was also affected.
    image

  3. Additionally, the remaining code was commented out to disrupt the UX/UI, making it difficult to revert the settings.

References

@giuscris giuscris published to getformwork/formwork Feb 28, 2025
Published to the GitHub Advisory Database Mar 1, 2025
Reviewed Mar 1, 2025

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L

EPSS score

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-vf6x-59hh-332f

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.