Imported Magento 2 product descriptions. Review unfamiliar HTML with Security Scan

2 min read

Three silver content cards beneath a gold-rimmed magnifying glass

Start with a small import on a test copy of the shop. Keep the CSV, SKU list, store views and earlier descriptions. That makes it easier to find the HTML introduced by the import. Magento data import.

Match findings to descriptions in the import file

With local report delivery and external integrations switched off in the test copy, run bin/magento kowal_securityscan:dbcheck. Version 1.0.31 scans, among other data, product text values in catalog_product_entity_text. Note the table, value ID and reason. Map the value to its product, attribute and store view. Kowal Security Scan. Module documentation.

Keep a review log by content type

The local test scanned three sample records as text. A plain paragraph produced no match. An embed from a known sample source and a JSON data block matched different rules. Use the report to see which sources require a closer look.

Review log from a local scan of product descriptions
Value IDDescription fragmentResultCheck before publication
101Plain paragraphNo matchCompare it with the import source.
102Instructions embedded from an external sourcedb.external_iframeConfirm the domain and material with the supplier.
103Data block in a script tagdb.inline_script_tagAsk the supplier what it does and whether it can be removed.

Review unfamiliar markup as text. Record the supplier, full source address and purpose of an approved embed. Hold the descriptions until the outstanding findings have been explained. Scan the sample again after corrections and record the decision for each ID. The review covers the imported text. OWASP guidance on safe HTML handling.

The earlier Security Scan guide covers the database and file checks.

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)