bobbystacksmash / Construct

A cross-platform Windows Script Host emulator for dynamically analysing malicious JScript programs.
GNU General Public License v3.0
8 stars 2 forks source link

Proxy fails to resolve .toString() during implicit object->string (.toString()). #4

Open bobbystacksmash opened 6 years ago

bobbystacksmash commented 6 years ago

When attempting to console.log(proxied_obj) an exception gets thrown:

TypeError: prop_key.toLowerCase is not a function 
 at Object.get (src/proxify2.js:6:36)

This may cause problems if sandboxed code attempts to coerce an object to a string, and we throw this error.