Re:VP of InfoSec at InVision on secure code development [audio]
by archgoon on Friday March 22, 2019 @01:03PM
(#19464480)
What are the problems with using inheritance to handle this?
then secure functions can be explicit about what type they need.
[ Parent
| on HN ]
Re:VP of InfoSec at InVision on secure code development [audio]
by tptacek on Friday March 22, 2019 @01:24PM
(#19464711)
Most modern frameworks, in all the mainstream languages, already have this feature, and it's usually the default. You still get XSS because you still have to override the filter to do custom HTML, but it helps a lot.
Re:VP of InfoSec at InVision on secure code development [audio]
by archgoon on Friday March 22, 2019 @01:35PM
(#19464844)
Right; I'm trying to understand the difference between this and the "units of measure" approach the grandparent was referencing.
(To be clear, your latter point is referring to things like 'dangerouslySetInnerHTML' in react?)
https://reactjs.org/docs/dom-elements.html#dangerouslysetinn...