We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vulnerability][acl] ACL is skipped for tag function of template literals
tag`\template ${param} string`; // calls to tag is not hooked
__hook__(tag, null, [((s,r)=>{s.raw=r; return s})(['\template ', ' string'], ['\\template ', ' string']), param], __context__[0], 0);
String.raw
String.raw`C:\raw\path\to\file.js` === 'C:\\raw\\path\\to\\file.js'
with
__hook__('w()', __with__, ['tag', [((s,r)=>{s.raw=r; return s})(['\template ', ' string'], ['\\template ', ' string']), param], (...args) => tag(...args), tag], __context__[0]);
The text was updated successfully, but these errors were encountered:
[demo][acl] Update normalize.js for verifying Fix #348, Fix #349, Fix #…
2d3b262
…350, and Fix #351
0.4.0-alpha.20 with [vulnerability][acl] Fix #348 tagged template lit…
cbaa935
…erals, Fix #349 with function calls, Fix #350 local function calls in with clause
8c167b5
No branches or pull requests
[vulnerability][acl] ACL is skipped for tag function of template literals
Root Cause
Reproducible Code
Fix
String.raw
tag functionwith
clause, transform with hooked call towith
-scoped variableThe text was updated successfully, but these errors were encountered: