GHSA-7HH3-3X64-V2G9
Vulnerability from github – Published: 2023-06-20 18:50 – Updated: 2023-06-26 13:55
VLAI
Summary
When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id
Details
Impact
If you used the apiPrefilter option of the @Entity decorator, by setting it to a function that returns a filter that prevents unauthorized access to data, an attacker who knows the id of an entity instance she is not authorized to access, can gain read, update and delete access to it.
Patches
The issue is fixed in version 0.20.6
Workarounds
Set the apiPrefilter option to a filter object instead of a function.
References
If you're using a minor version < 0.20 and require a patch, please create an issue.
Severity
5.0 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "remult"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.20.6"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2023-35167"
],
"database_specific": {
"cwe_ids": [
"CWE-284"
],
"github_reviewed": true,
"github_reviewed_at": "2023-06-20T18:50:15Z",
"nvd_published_at": "2023-06-23T20:15:09Z",
"severity": "MODERATE"
},
"details": "### Impact\nIf you used the [apiPrefilter](https://remult.dev/docs/ref_entity.html#apiprefilter) option of the `@Entity` decorator, by setting it to a function that returns a filter that prevents unauthorized access to data, an attacker who knows the `id` of an entity instance she is not authorized to access, can gain read, update and delete access to it.\n\n### Patches\nThe issue is fixed in version 0.20.6\n\n### Workarounds\nSet the `apiPrefilter` option to a filter object instead of a function.\n\n### References\nIf you\u0027re using a minor version \u003c 0.20 and require a patch, please create an issue.",
"id": "GHSA-7hh3-3x64-v2g9",
"modified": "2023-06-26T13:55:41Z",
"published": "2023-06-20T18:50:15Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/remult/remult/security/advisories/GHSA-7hh3-3x64-v2g9"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-35167"
},
{
"type": "WEB",
"url": "https://github.com/remult/remult/commit/6892ae97134126d8710ef7302bb2fc37730994c5"
},
{
"type": "PACKAGE",
"url": "https://github.com/remult/remult"
},
{
"type": "WEB",
"url": "https://github.com/remult/remult/releases/tag/v0.20.6"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
}
],
"summary": "When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…