Imported product descriptions in Magento 2. How to review unfamiliar HTML with Security Scan

2 min read

Three silver content cards beneath a magnifying lens with a gold rim

Start with a small import on a test copy of the store. Save the CSV, the SKU list, the store views and the previous descriptions. This makes it easier to tell which HTML arrived with the import. Magento data import.

Match report records to descriptions in the import file

With local report delivery and external integrations disabled on the test copy, run bin/magento kowal_securityscan:dbcheck. Version 1.0.31 scans product text values in catalog_product_entity_text among its targets. Record the table, value ID and reason for each match. Map the value to its product, attribute and store view. Kowal Security Scan. Module documentation.

Keep a review log for each kind of content

The local test scanned three sample records as text. A plain paragraph produced no match. An embed with a known source in the sample and a block containing only JSON data triggered different rules. Use the report to identify records whose origin needs manual review.

Review log from a local scan of product texts
Value IDDescription fragmentResultCheck before publication
101Plain paragraphNo matchCompare the text with the import source.
102Externally embedded instructiondb.external_iframeConfirm the domain and material with the supplier.
103Data block in a script tagdb.inline_script_tagAsk the supplier why it is there and whether it can be removed.

Inspect unfamiliar markup as text. For an approved embed, record the supplier, full source address and purpose. Hold affected descriptions until outstanding matches are understood. After corrections, rescan the sample and record the decision for each ID. This review covers the imported text. OWASP guidance on safe HTML handling.

The earlier Security Scan guide covers the database and file scan scope.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)