Get the short version of a vulnerability description for a specific scan result.
http://localhost/cxrestapi/sast/scans/{id}/results/{pathId}/shortDescription
GET
Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0
id=[integer] – Unique Id of the scan
pathId=[integer] – Unique Id of the result path
curl -X GET --header 'Accept: application/json' --header 'CXCSRFToken: 27e4968009e140888c017a4bf639d80e' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/scans/1000002/results/1/shortDescription'
{
"shortDescription": "The application's main method receives an dynamically executes user-controlled code using line 9 of \\Code_Injection\\1\\code_injection.java. This could enable an attacker to inject and run arbitrary code. The attacker can inject the executed code via user input, which is retrieved by the application in the main method, at line 4 of \\Code_Injection\\1\\code_injection.java.\n"
}
Code: 200 OK
Code: 400 Bad Request
Code: 404 Not Found
Retrieves the short version of the vulnerability description for a specific scan result. If the request fails, it returns an error response.
|