Document Navigation

Automatically block cross-site scripting (XSS) attacks.

I. What is a Cross-Site Scripting (XSS) attack?

For example, suppose your website has an inquiry message board. A normal overseas buyer would type "I am interested in this machine". However, a hacker could secretly enter a piece of hidden malicious code (such as a program instruction starting with <script>) into the message box.

If a website system displays this message directly on the webpage without any precautions, the browser will automatically run this malicious code when you log in to the backend to view the message, or when other visitors browse the page. This could lead to your administrator password being stolen, website visitors being forcibly redirected to fraudulent websites, or even your independent website being marked as a "dangerous website" by Google and blocked.

II. SX-Creval's Defense-in-Depth System

To completely eliminate this hidden danger, SX-Creval has built an unbreakable "defense-in-depth system" (i.e., a multi-layered nested security filtering mechanism) to nip any malicious code execution attempts in the bud.

First layer: Strict HTML whitelist filtering (prevention is better than cure)
When any external data (such as forms filled out by customers, or content copied and pasted from external web pages into a rich text editor) is about to enter the database, SX-Creval's built-in content engine performs an extremely strict "whitelist" security check.
The system only allows extremely safe, standard formatting elements (such as bold, italics, paragraphs, and images) to pass through. Any code containing executable logic (especially the `<script>` tag) will be instantly identified and completely removed by the system during the database entry and rendering stages. This means that malicious code will never even have a chance to enter your database.

The second layer: a mandatory automatic escaping mechanism (a safety net).
For users with some technical knowledge, the security of the rendering layer is equally important. SX-Creval relies on the powerful Django template engine and has a strict auto-escaping mechanism enabled globally by default.
This means that even if a piece of seemingly dangerous code happens to appear in the front-end display layer of a webpage, the system will automatically convert it into harmless plain text symbols one millisecond before it is output to the screen.
For example, the `<script>` entered by a hacker will be forcibly translated by the system into the ordinary text symbol `<script>`. When it is displayed on the screen, the browser will only treat it as a line of ordinary text for reading, and will never treat it as an instruction to be executed.

III. Protection of your daily operations

As a user of the SX-Creval system, you don't need to be a cybersecurity expert. This dual filtering mechanism is native to the system's underlying layer and requires no plugins or manual configuration.

  1. Absolute security : You can confidently view any inquiries and messages from around the world without worrying about having your backend access stolen simply by clicking on a piece of content.
  2. A clean content environment : Whether it's foreign trade sales staff entering products in the backend or visitors interacting on the frontend, the system ensures the absolute purity of the webpage code, protecting your company's brand reputation and making your foreign trade digital assets rock solid.