cktool-api-base 1.0.2 → 1.0.3
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.
- package/README.md +6 -33
- package/index.js +14 -15
- package/package.json +4 -8
- package/postinstall.js +14 -15
package/README.md
CHANGED
|
@@ -1,42 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cktool-api-base
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Security research — this unscoped name was available on the public npm registry.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
If your build resolved this package, you were likely looking for a Apple CloudKit Tool JS package. The scoped equivalent may be `@apple/cktool.api.base`, served from Apple's private registry.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
If your build system resolves `cktool-api-base` (unscoped) from the public npm registry instead of `@apple/cktool.api.base` from your private registry, this package would be installed instead of Apple's official one.
|
|
10
|
-
|
|
11
|
-
## If you're seeing this
|
|
12
|
-
|
|
13
|
-
Your project or build system is resolving an unscoped package name from the public npm registry. The correct package is:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm uninstall cktool-api-base
|
|
17
|
-
npm install @apple/cktool.api.base
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
You should also configure your `.npmrc` to scope internal packages to your private registry:
|
|
7
|
+
Check your `.npmrc` for scoped registry configuration:
|
|
21
8
|
|
|
22
9
|
```
|
|
23
10
|
@apple:registry=https://your-private-registry/
|
|
24
11
|
```
|
|
25
12
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- Read files from your system
|
|
29
|
-
- Access credentials or environment variables
|
|
30
|
-
- Establish persistent access
|
|
31
|
-
- Modify system state
|
|
32
|
-
- Exfiltrate sensitive data
|
|
33
|
-
- Send telemetry or pingback beacons
|
|
34
|
-
|
|
35
|
-
## Contact
|
|
36
|
-
|
|
37
|
-
- Researcher: @merrickhare
|
|
38
|
-
- Program: Apple Security Bounty
|
|
39
|
-
|
|
40
|
-
## License
|
|
13
|
+
No files are read, no data is sent anywhere. This package exists so the name isn't claimed by someone with worse intentions.
|
|
41
14
|
|
|
42
|
-
|
|
15
|
+
— @merrickhare (X / Discord)
|
package/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
console.log('
|
|
5
|
-
console.log('
|
|
6
|
-
console.log('
|
|
7
|
-
console.log('\
|
|
8
|
-
console.log('
|
|
9
|
-
console.log('
|
|
10
|
-
console.log('
|
|
11
|
-
console.log('
|
|
12
|
-
console.log('
|
|
13
|
-
console.log('
|
|
14
|
-
console.log('
|
|
15
|
-
console.log('='.repeat(60) + '\n');
|
|
1
|
+
console.log('\n' + '='.repeat(56));
|
|
2
|
+
console.log('Security research —');
|
|
3
|
+
console.log('\x1b[1mcktool-api-base\x1b[0m (unscoped) was available on npm.');
|
|
4
|
+
console.log('');
|
|
5
|
+
console.log('If you were looking for a Apple CloudKit Tool JS package,');
|
|
6
|
+
console.log('the scoped equivalent may be:');
|
|
7
|
+
console.log(' \x1b[1m@apple/cktool.api.base\x1b[0m');
|
|
8
|
+
console.log('');
|
|
9
|
+
console.log('Check your .npmrc:');
|
|
10
|
+
console.log(' \x1b[32m@apple:registry=https://your-private-registry/\x1b[0m');
|
|
11
|
+
console.log('');
|
|
12
|
+
console.log('No files are read. No data goes anywhere.');
|
|
13
|
+
console.log('@merrickhare (X / Discord)');
|
|
14
|
+
console.log('='.repeat(56) + '\n');
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cktool-api-base",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Security research — unscoped name available on npm. See @merrickhare on X/Discord.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node postinstall.js"
|
|
8
8
|
},
|
|
9
|
-
"keywords": ["security-research", "apple", "
|
|
10
|
-
"license": "MIT"
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/mapkit-loader/cktool-api-base"
|
|
14
|
-
}
|
|
9
|
+
"keywords": ["security-research", "apple", "registry-configuration"],
|
|
10
|
+
"license": "MIT"
|
|
15
11
|
}
|
package/postinstall.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
console.warn('
|
|
5
|
-
console.warn('
|
|
6
|
-
console.warn('
|
|
7
|
-
console.warn('\
|
|
8
|
-
console.warn('
|
|
9
|
-
console.warn('
|
|
10
|
-
console.warn('
|
|
11
|
-
console.warn('
|
|
12
|
-
console.warn('
|
|
13
|
-
console.warn('
|
|
14
|
-
console.warn('
|
|
15
|
-
console.warn('='.repeat(60) + '\n');
|
|
1
|
+
console.warn('\n' + '='.repeat(56));
|
|
2
|
+
console.warn('Security research —');
|
|
3
|
+
console.warn('\x1b[1mcktool-api-base\x1b[0m (unscoped) was available on npm.');
|
|
4
|
+
console.warn('');
|
|
5
|
+
console.warn('If you were looking for a Apple CloudKit Tool JS package,');
|
|
6
|
+
console.warn('the scoped equivalent may be:');
|
|
7
|
+
console.warn(' \x1b[1m@apple/cktool.api.base\x1b[0m');
|
|
8
|
+
console.warn('');
|
|
9
|
+
console.warn('Check your .npmrc:');
|
|
10
|
+
console.warn(' \x1b[32m@apple:registry=https://your-private-registry/\x1b[0m');
|
|
11
|
+
console.warn('');
|
|
12
|
+
console.warn('No files are read. No data goes anywhere.');
|
|
13
|
+
console.warn('@merrickhare (X / Discord)');
|
|
14
|
+
console.warn('='.repeat(56) + '\n');
|