@avaldigitallabs/adl-pfm-lib-web-components 2.1.30
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +8 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
// index.js
|
2
|
+
module.exports = function(adlPfmLibWebComponent) {
|
3
|
+
// Simulando una entrada del usuario que se inserta en el DOM sin escape
|
4
|
+
const userInput = adlPfmLibWebComponent;
|
5
|
+
const container = document.createElement('div');
|
6
|
+
container.innerHTML = userInput; // Vulnerabilidad de XSS
|
7
|
+
document.body.appendChild(container);
|
8
|
+
};
|