mobbdev 0.0.181 → 0.0.183
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/dist/index.mjs +21 -5
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -122,6 +122,7 @@ var IssueType_Enum = /* @__PURE__ */ ((IssueType_Enum2) => {
|
|
|
122
122
|
IssueType_Enum2["HardcodedDomainInHtml"] = "HARDCODED_DOMAIN_IN_HTML";
|
|
123
123
|
IssueType_Enum2["HardcodedSecrets"] = "HARDCODED_SECRETS";
|
|
124
124
|
IssueType_Enum2["HeaderManipulation"] = "HEADER_MANIPULATION";
|
|
125
|
+
IssueType_Enum2["HeapInspection"] = "HEAP_INSPECTION";
|
|
125
126
|
IssueType_Enum2["HtmlCommentInJsp"] = "HTML_COMMENT_IN_JSP";
|
|
126
127
|
IssueType_Enum2["HttpOnlyCookie"] = "HTTP_ONLY_COOKIE";
|
|
127
128
|
IssueType_Enum2["HttpResponseSplitting"] = "HTTP_RESPONSE_SPLITTING";
|
|
@@ -1547,7 +1548,11 @@ var fixDetailsData = {
|
|
|
1547
1548
|
fixInstructions: "Use express-rate-limit npm package to set a rate limit."
|
|
1548
1549
|
},
|
|
1549
1550
|
["MISSING_CSP_HEADER" /* MissingCspHeader */]: void 0,
|
|
1550
|
-
["HARDCODED_DOMAIN_IN_HTML" /* HardcodedDomainInHtml */]: void 0
|
|
1551
|
+
["HARDCODED_DOMAIN_IN_HTML" /* HardcodedDomainInHtml */]: void 0,
|
|
1552
|
+
["HEAP_INSPECTION" /* HeapInspection */]: {
|
|
1553
|
+
issueDescription: "All variables stored by the application in unencrypted memory can be read by an attacker. This can lead to the exposure of sensitive information, such as passwords, credit card numbers, and personal data.",
|
|
1554
|
+
fixInstructions: "Use secure storage methods to store secrets in memory."
|
|
1555
|
+
}
|
|
1551
1556
|
};
|
|
1552
1557
|
|
|
1553
1558
|
// src/features/analysis/scm/shared/src/getIssueType.ts
|
|
@@ -1625,7 +1630,8 @@ var issueTypeMap = {
|
|
|
1625
1630
|
["UNVALIDATED_PUBLIC_METHOD_ARGUMENT" /* UnvalidatedPublicMethodArgument */]: "Unvalidated Public Method Argument",
|
|
1626
1631
|
["AUTO_ESCAPE_FALSE" /* AutoEscapeFalse */]: "Auto-escape False",
|
|
1627
1632
|
["MISSING_CSP_HEADER" /* MissingCspHeader */]: "Missing CSP Header",
|
|
1628
|
-
["HARDCODED_DOMAIN_IN_HTML" /* HardcodedDomainInHtml */]: "Hardcoded Domain in HTML"
|
|
1633
|
+
["HARDCODED_DOMAIN_IN_HTML" /* HardcodedDomainInHtml */]: "Hardcoded Domain in HTML",
|
|
1634
|
+
["HEAP_INSPECTION" /* HeapInspection */]: "Heap Inspection"
|
|
1629
1635
|
};
|
|
1630
1636
|
var issueTypeZ = z4.nativeEnum(IssueType_Enum);
|
|
1631
1637
|
var getIssueTypeFriendlyString = (issueType) => {
|
|
@@ -1980,6 +1986,15 @@ var pt = {
|
|
|
1980
1986
|
}
|
|
1981
1987
|
};
|
|
1982
1988
|
|
|
1989
|
+
// src/features/analysis/scm/shared/src/storedQuestionData/csharp/sqlInjection.ts
|
|
1990
|
+
var sqlInjection2 = {
|
|
1991
|
+
databaseProvider: {
|
|
1992
|
+
content: () => "Select the database provider",
|
|
1993
|
+
description: () => "",
|
|
1994
|
+
guidance: () => ""
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1983
1998
|
// src/features/analysis/scm/shared/src/storedQuestionData/csharp/ssrf.ts
|
|
1984
1999
|
var ssrf2 = {
|
|
1985
2000
|
domainsAllowlist: {
|
|
@@ -2124,7 +2139,8 @@ var vulnerabilities7 = {
|
|
|
2124
2139
|
["INSECURE_BINDER_CONFIGURATION" /* InsecureBinderConfiguration */]: insecureBinderConfiguration,
|
|
2125
2140
|
["VALUE_SHADOWING" /* ValueShadowing */]: valueShadowing,
|
|
2126
2141
|
["INSECURE_RANDOMNESS" /* InsecureRandomness */]: insecureRandomness,
|
|
2127
|
-
["INSUFFICIENT_LOGGING" /* InsufficientLogging */]: insufficientLogging
|
|
2142
|
+
["INSUFFICIENT_LOGGING" /* InsufficientLogging */]: insufficientLogging,
|
|
2143
|
+
["SQL_Injection" /* SqlInjection */]: sqlInjection2
|
|
2128
2144
|
};
|
|
2129
2145
|
var csharp_default2 = vulnerabilities7;
|
|
2130
2146
|
|
|
@@ -2380,7 +2396,7 @@ var typeToSetMethod = {
|
|
|
2380
2396
|
date: "setDate",
|
|
2381
2397
|
string: "setString"
|
|
2382
2398
|
};
|
|
2383
|
-
var
|
|
2399
|
+
var sqlInjection3 = {
|
|
2384
2400
|
parameterType: {
|
|
2385
2401
|
content: ({ tainted_term }) => `What is the SQL Data Type of the \`${tainted_term}\` parameter?`,
|
|
2386
2402
|
description: () => "In order to make sure the statement is built correctly, we must ensure we use the same type that is defined for this parameter in the SQL table. If you are unsure of this type, please consult with your team.",
|
|
@@ -2563,7 +2579,7 @@ var xxe2 = {
|
|
|
2563
2579
|
|
|
2564
2580
|
// src/features/analysis/scm/shared/src/storedQuestionData/java/index.ts
|
|
2565
2581
|
var vulnerabilities8 = {
|
|
2566
|
-
["SQL_Injection" /* SqlInjection */]:
|
|
2582
|
+
["SQL_Injection" /* SqlInjection */]: sqlInjection3,
|
|
2567
2583
|
["CMDi_relative_path_command" /* CmDiRelativePathCommand */]: relativePathCommand,
|
|
2568
2584
|
["CMDi" /* CmDi */]: commandInjection,
|
|
2569
2585
|
["CONFUSING_NAMING" /* ConfusingNaming */]: confusingNaming,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.183",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"repository": "git+https://github.com/mobb-dev/bugsy.git",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"parse-diff": "0.11.1",
|
|
62
62
|
"semver": "7.6.3",
|
|
63
63
|
"simple-git": "3.27.0",
|
|
64
|
-
"snyk": "1.
|
|
64
|
+
"snyk": "1.1294.0",
|
|
65
65
|
"supports-color": "9.4.0",
|
|
66
66
|
"tar": "6.2.1",
|
|
67
67
|
"tmp": "0.2.3",
|
|
68
|
-
"undici": "6.20.
|
|
68
|
+
"undici": "6.20.1",
|
|
69
69
|
"uuid": "10.0.0",
|
|
70
70
|
"ws": "8.18.0",
|
|
71
71
|
"yargs": "17.7.2",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@graphql-codegen/cli": "5.0.3",
|
|
76
|
-
"@graphql-codegen/typescript": "4.1.
|
|
76
|
+
"@graphql-codegen/typescript": "4.1.1",
|
|
77
77
|
"@graphql-codegen/typescript-graphql-request": "6.2.0",
|
|
78
|
-
"@graphql-codegen/typescript-operations": "4.3.
|
|
78
|
+
"@graphql-codegen/typescript-operations": "4.3.1",
|
|
79
79
|
"@octokit/request-error": "3.0.3",
|
|
80
80
|
"@octokit/types": "13.6.1",
|
|
81
81
|
"@types/adm-zip": "0.5.5",
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
"@types/tar": "6.1.13",
|
|
88
88
|
"@types/tmp": "0.2.6",
|
|
89
89
|
"@types/uuid": "10.0.0",
|
|
90
|
-
"@types/ws": "8.5.
|
|
90
|
+
"@types/ws": "8.5.13",
|
|
91
91
|
"@types/yargs": "17.0.33",
|
|
92
92
|
"@typescript-eslint/eslint-plugin": "7.17.0",
|
|
93
93
|
"@typescript-eslint/parser": "7.17.0",
|
|
94
|
-
"@vitest/coverage-istanbul": "2.1.
|
|
94
|
+
"@vitest/coverage-istanbul": "2.1.4",
|
|
95
95
|
"@vitest/ui": "^2.1.2",
|
|
96
96
|
"eslint": "8.57.0",
|
|
97
97
|
"eslint-plugin-import": "2.31.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"prettier": "3.3.3",
|
|
101
101
|
"tsup": "7.2.0",
|
|
102
102
|
"typescript": "4.9.5",
|
|
103
|
-
"vitest": "2.1.
|
|
103
|
+
"vitest": "2.1.4"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": ">=18.18.0"
|