@avaldigitallabs/adl-pfm-lib-web-components 2.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @avaldigitallabs/adl-pfm-lib-web-components might be problematic. Click here for more details.

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
+