Lucene search

K
githubGitHub Advisory DatabaseGHSA-W8RC-PGXQ-X2CJ
HistoryApr 22, 2020 - 8:59 p.m.

Negative charge in shopping cart in Shopizer

2020-04-2220:59:26
CWE-20
GitHub Advisory Database
github.com
43

CVSS2

4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:S/C:N/I:P/A:N

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

EPSS

0.001

Percentile

19.4%

Impact

Using API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total.

Patches

Adding a back-end verification to check that quantity parameter isn’t negative. If so, it is set to 1. Patched in 2.11.0

Workarounds

Without uprading, it’s possible to just apply the fixes in the same files it’s done for the patch. Or you use javax constraint validation on the quantity parameter.

References

Input Validation
Using bean validation constraint
Commits with fixes
CVE Details below :
Mitre
NVD

Credits

Found and solved by Yannick Gosset from Aix-Marseille University cybersecurity
master program supervised by Yassine Ilmi

Affected configurations

Vulners
Node
com.shopizersm-core-modelRange<2.11.0
VendorProductVersionCPE
com.shopizersm-core-model*cpe:2.3:a:com.shopizer:sm-core-model:*:*:*:*:*:*:*:*

CVSS2

4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:S/C:N/I:P/A:N

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

EPSS

0.001

Percentile

19.4%

Related for GHSA-W8RC-PGXQ-X2CJ