GHSA-v3ph-2q5q-cg88
@haxtheweb/haxcms-nodejs Iframe Phishing vulnerability
Quick fix
GHSA-v3ph-2q5q-cg88 — @haxtheweb/haxcms-nodejs: upgrade to the fixed version with the command below.
npm install @haxtheweb/haxcms-nodejs@11.0.0Details
### Summary
In the HAX site editor, users can create a website block to load another site in an iframe. The application allows users to supply a target URL in the website block. When the HAX site is visited, the client's browser will query the supplied URL.
### Affected Resources
- [Operations.php:868](https://github.com/haxtheweb/haxcms-php/blob/master/system/backend/php/lib/Operations.php#L868) - `https://<site>/<user>/system/api/saveNode`
### PoC
1. Set the URL in an iframe pointing to an attacker-controlled server running Responder

2. Once another user visits the site, they are prompted to sign in.

3. If a user inputs credentials, the username and password hash are outputted in Responder.

### Impact
An authenticated attacker can create a HAX site with a website block pointing at an attacker-controlled server running Responder or a similar tool. The attacker can then conduct a phishing attack by convincing another user to visit their malicious HAX site to harvest credentials.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 11.0.0npm install @haxtheweb/haxcms-nodejs@11.0.0References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/%40haxtheweb/haxcms-nodejs"]}'