CVE-2018-20367 in WSTMartinfo

Summary

by MITRE

The "mall some commodity details: commodity consultation" component in WSTMart 2.0.8_181212 has stored XSS via the consultContent parameter, as demonstrated by the index.php/home/goodsconsult/add.html URI.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 04/23/2020

The vulnerability identified as CVE-2018-20367 represents a critical stored cross-site scripting flaw within the WSTMart e-commerce platform version 2.0.8_181212. This security weakness specifically affects the commodity consultation feature that allows users to submit product-related queries or comments. The vulnerability manifests through the consultContent parameter which is processed in the index.php/home/goodsconsult/add.html URI endpoint, creating an environment where malicious input can be persistently stored and subsequently executed in users' browsers.

The technical implementation of this vulnerability stems from insufficient input validation and output sanitization within the application's data handling processes. When users submit product consultations through the affected component, the system fails to properly sanitize the consultContent parameter before storing it in the database. This oversight allows attackers to inject malicious javascript code that gets stored alongside legitimate product inquiries. The stored payload becomes executable whenever other users view the consultation details, creating a persistent XSS attack vector that can affect multiple users over time.

The operational impact of this vulnerability extends beyond simple data theft or defacement, as it provides attackers with the capability to execute arbitrary code within users' browser contexts. This could enable session hijacking, credential theft, redirection to malicious sites, or the deployment of additional malware. The stored nature of the vulnerability means that even users who do not directly interact with the affected page could be compromised when they browse to product consultation sections. The attack surface is particularly concerning in e-commerce environments where user trust and session management are critical components of the security architecture.

Security professionals should consider this vulnerability in the context of CWE-79 which specifically addresses cross-site scripting flaws, and align it with ATT&CK technique T1566 which covers social engineering through malicious content delivery. Organizations using WSTMart 2.0.8_181212 should immediately implement input validation measures including proper sanitization of all user-supplied data before storage, and employ output encoding techniques to prevent malicious scripts from executing. The recommended mitigations include implementing comprehensive parameter validation, deploying web application firewalls, and conducting regular security audits of user input handling mechanisms. Additionally, the application should be updated to a patched version that properly addresses the stored XSS vulnerability through proper data sanitization and secure coding practices that prevent malicious content from being stored or executed in user contexts.

Reservation

12/22/2018

Disclosure

12/22/2018

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00328

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!