Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl -X GET --header 'Accept: application/json' --header 'CXCSRFToken: 27e4968009e140888c017a4bf639d80e' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/scans/1000002/results/1/shortDescription'

Sample Response:

{
  "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"
}

Success Response:

Code: 200 OK

...