The invention provides a fuzzy test
system and method for a WASM module in a
JavaScript engine, the
system is composed of a seed generation module, a target engine
adaptation module and a fuzzy test module cooperatively, and the seed generation module designs a seed generation
algorithm in combination with the new characteristics of the WASM. The
algorithm not only strengthens the coverage range of WASM and
JavaScript interaction, but also ensures that a
test sample generated by variation has semantic
correctness through dynamic parameter adjustment and grammar constraint. And the target engine
adaptation module accurately identifies potential cross-border access and type
confusion vulnerabilities by adopting weighted coverage rate feedback and an additional
correctness check mechanism. The fuzz test module efficiently finds and reproduces security problems in the engine. According to the method, vulnerabilities such as memory destruction and cross-border access existing in the WASM module in the
JavaScript engine can be quickly positioned, key guarantee is provided for Web security,
JavaScript engine developers and security researchers are helped to quickly troubleshoot potential safety hazards, the
test efficiency and the
vulnerability discovery number are increased, and the security of the
JavaScript engine is enhanced.