@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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. 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
+ };
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@avaldigitallabs/adl-pfm-lib-web-components",
3
+ "version": "2.1.30",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "author": "",
9
+ "license": "ISC"
10
+ }
11
+