nyx/tests/dynamic_fixtures/js/xss_unsupported.js
2026-06-05 10:16:30 -05:00

13 lines
399 B
JavaScript

// XSS — unsupported fixture.
// Entry is a class method rather than a top-level function.
// Test sets confidence = Low to get Unsupported(ConfidenceTooLow).
// Entry: TemplateEngine.render(input) Cap: HTML_ESCAPE
// Expected verdict: Unsupported
class TemplateEngine {
render(input) {
return '<html><body>' + input + '</body></html>';
}
}
module.exports = { TemplateEngine };