Comments (2)
An attacker could do <p>${xss}</p><a title="substitutionindex:0:">yo</a>
, but this would only cause the value of ${xss}
to be placed into the title using setAttribute
, which is almost equivalent to doing <p>${xss}</p><a title="${xss}">yo</a>
. Even if the attacker did <p>${xss}</p><a title="substitutionindex:10:">yo</a>
, the value of undefined
would be placed into the title.
from html-tagged-template.
Ah yes, I was concerned that it would confuse the context-sensitive escaping when used in different contexts. But the values are escaped when before insertion and not in-place.
from html-tagged-template.
Related Issues (18)
- Should we use the HTML parser HOT 1
- Alternative HOT 2
- Comparison to hyperx HOT 1
- Windows 10 Firefox 44 shifts the attribute NamedNodeMap when using removeAttribute HOT 2
- How should we handle DOM clobbering
- How should we allow safeHTML HOT 3
- Why not just use this library? HOT 2
- Render Fails with value set to "" HOT 1
- Safe URLs deemed unsafe during attribute substitution HOT 1
- Unused parameter HOT 1
- please don't make SUBSTITUION_INDEX look like a typo :) HOT 1
- allow sub templates ? HOT 2
- do not reject data: protocol HOT 2
- allow values to be array of Nodes (or text), fragments HOT 2
- Easier boolean attributes HOT 2
- Overloaded return type seems problematic HOT 8
- Should we trim whitespace HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-tagged-template.