Commit 7b2aa5a2 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'false_positive_info_in_api' into 'master'

Add false-positive information in the api response

See merge request gitlab-org/gitlab!70328
parents 0d75b42c 909295f1
...@@ -74,77 +74,66 @@ Example response: ...@@ -74,77 +74,66 @@ Example response:
[ [
{ {
"id": null, "id": null,
"report_type": "dependency_scanning", "report_type": "sast",
"name": "Authentication bypass via incorrect DOM traversal and canonicalization in saml2-js", "name": "Possible command injection",
"severity": "unknown", "severity": "high",
"confidence": "undefined", "confidence": "high",
"scanner": { "scanner": {
"external_id": "gemnasium", "external_id": "brakeman",
"name": "Gemnasium" "name": "Brakeman",
"vendor": "GitLab"
}, },
"identifiers": [ "identifiers": [
{ {
"external_type": "gemnasium", "external_type": "brakeman_warning_code",
"external_id": "9952e574-7b5b-46fa-a270-aeb694198a98", "external_id": "14",
"name": "Gemnasium-9952e574-7b5b-46fa-a270-aeb694198a98", "name": "Brakeman Warning Code 14",
"url": "https://deps.sec.gitlab.com/packages/npm/saml2-js/versions/1.5.0/advisories" "url": "https://brakemanscanner.org/docs/warning_types/command_injection/"
},
{
"external_type": "cve",
"external_id": "CVE-2017-11429",
"name": "CVE-2017-11429",
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11429"
} }
], ],
"project_fingerprint": "fa6f5b6c5d240b834ac5e901dc69f9484cef89ec", "project_fingerprint": "ac218b1770af030cfeef967752ab803c55afb36d",
"uuid": "31f483bc-bfc0-586d-9b92-f1015c4535b8", "uuid": "ad5e3be3-a193-55f5-a200-bc12865fb09c",
"create_vulnerability_feedback_issue_path": "/tests/yarn-remediation-test/vulnerability_feedback", "create_jira_issue_url": null,
"create_vulnerability_feedback_merge_request_path": "/tests/yarn-remediation-test/vulnerability_feedback", "false_positive": true,
"create_vulnerability_feedback_dismissal_path": "/tests/yarn-remediation-test/vulnerability_feedback", "create_vulnerability_feedback_issue_path": "/root/test-false-positive/-/vulnerability_feedback",
"create_vulnerability_feedback_merge_request_path": "/root/test-false-positive/-/vulnerability_feedback",
"create_vulnerability_feedback_dismissal_path": "/root/test-false-positive/-/vulnerability_feedback",
"project": { "project": {
"id": 31, "id": 2,
"name": "yarn-remediation-test", "name": "Test False Positive",
"full_path": "/tests/yarn-remediation-test", "full_path": "/root/test-false-positive",
"full_name": "tests / yarn-remediation-test" "full_name": "Administrator / Test False Positive"
}, },
"dismissal_feedback": null, "dismissal_feedback": null,
"issue_feedback": null, "issue_feedback": null,
"merge_request_feedback": null, "merge_request_feedback": null,
"description": "Some XML DOM traversal and canonicalization APIs may be inconsistent in handling of comments within XML nodes. Incorrect use of these APIs by some SAML libraries results in incorrect parsing of the inner text of XML nodes such that any inner text after the comment is lost prior to cryptographically signing the SAML message. Text after the comment therefore has no impact on the signature on the SAML message.\r\n\r\nA remote attacker can modify SAML content for a SAML service provider without invalidating the cryptographic signature, which may allow attackers to bypass primary authentication for the affected SAML service provider.", "description": null,
"links": [ "links": [],
{
"url": "https://github.com/Clever/saml2/commit/3546cb61fd541f219abda364c5b919633609ef3d#diff-af730f9f738de1c9ad87596df3f6de84R279"
},
{
"url": "https://www.kb.cert.org/vuls/id/475445"
},
{
"url": "https://github.com/Clever/saml2/issues/127"
}
],
"location": { "location": {
"file": "yarn.lock", "file": "app/controllers/users_controller.rb",
"dependency": { "start_line": 42,
"package": { "class": "UsersController",
"name": "saml2-js" "method": "list_users"
},
"version": "1.5.0"
}
}, },
"details": { "remediations": [
"custom_field": { null
"name": "URLs", ],
"type": "list", "solution": null,
"items": [ "evidence": null,
{ "request": null,
"type": "url", "response": null,
"href": "http://site.com/page/1" "evidence_source": null,
} "supporting_messages": [],
] "assets": [],
} "details": {},
"state": "detected",
"scan": {
"type": "sast",
"status": "success",
"start_time": "2021-09-02T20:55:48",
"end_time": "2021-09-02T20:55:48"
}, },
"solution": "Upgrade to fixed version.\r\n", "blob_path": "/root/test-false-positive/-/blob/dfd75607752a839bbc9c7362d111effaa470fecd/app/controllers/users_controller.rb#L42"
"blob_path": "/tests/yarn-remediation-test/blob/cc6c4a0778460455ae5d16ca7025ca9ca1ca75ac/yarn.lock"
} }
] ]
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment