Versions Compared

Key

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

The VINCE API is still under development, but we are making this documentation available for folks who might want to try it out in the meantime. Please let us know what changes you'd like by submitting feedback through VINCE.


Table of Contents

...

Token Authentication:

First, you have to login to the VINCE COMM UI and generate a key in your profile:

Image Removed

...

  1. Log in to VINCE.
  2. Go to your User Profile.
  3. Scroll down to "Generate API Key".
  4. Copy they API key to a safe place, you

...

  1. will not be able to access it again.

...

  1. If lost, you need to regenerate a new one.
  2. Use the

...

  1. API key in the headers of your

...

Code Examples

...

  1. request as shown below.

Image Added

Code Block
headers={'Authorization': "Token {}".format(token)}

Code Examples


List orgs you belong to

Code Block
languagepy
# get information about organizations you belong to:
api = 'https://kb.cert.org/vince/comm/api/vendor/'
headers={'Authorization': "Token {}".format(token) }
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
languagepy

# get a list of your cases
headers={'Authorization': "Token {}".format(token)}
api = 'https://kb.cert.org/vince/comm/api/cases/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get information about VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get all posts for case VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/posts/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get the original report for VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/report/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get the vuls for VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/vuls/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get all the vendors involved in VU#701582 (also gets their status and statements)
api = 'https://kb.cert.org/vince/comm/api/case/vendors/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
# get all the vendors and their status/statement/references for each specific vul
api = fAPI: /vince/comm/api/vendor #get information about vendors you belong to
[   {   'emails': ['test@example.com'],
        'id': 3548,
        'users': ['vince.user'],
        'vendor_name': 'VendorCorp'},
    {   'emails': ['test@example.com'],
        'id': 3551,
        'users': ['vince.user'],
        'vendor_name': 'Testing Co'},
    {   'emails': ['test@example.com', 'test3@example.com'],
        'id': 3549,
        'users': ['vince.user', 'Vince User'],
        'vendor_name': 'Testing Vendor'}]


List your cases

Code Block
languagepy
# get a list of your cases
headers={'Authorization': "Token {}".format(token)}
api = 'https://kb.cert.org/vince/comm/api/case/vendors/vuls/{case}/'
headers={'content-type':'application/json', 'Authorization': "Token {}".format(token) }
cases/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: /vince/comm/api/cases # get thea vulnerabilitylist note,of ifcases available
api = f'https://kb.cert.org/vince/comm/api/case/note/{case}/'
headers={'content-type':'application/json', 'Authorization': "Token {}".format(token) }
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
#update vendor status
api = f'https://kb.cert.org/vince/comm/api/case/vendor/statement/{case}/'
data = [{'vendor': 3548, 
	'status':'Not Affected', 
	'references':["http://www.test.gov", "https://www.google.com"], 
	'share':True,
	'vulnerability':'CVE-2020-19293', 
	'statement': 'This is my statement'}, 
	{'vendor': 3548, 
	'status':'Affected', 
	'statement':"Test", 
	'references':["http://www.test.gov","https://www.google.com"], 
	'share':True,
	'vulnerability':'VU#785701.2'}]
r = requests.post(api, headers=headers, data=json.dumps(data))
print(r.text)
Code Block
API: /vince/comm/api/vendor #get information about vendors you belong to
[   {   'emails': ['emilytest@gmail.com'],
        'id': 3548,involved in
[   {   'created': '2020-06-11T18:51:48.204903Z',
        'due_date': None,
        'status': 'Active',
        'summary': 'test',
        'title': 'test',
        'vuid': '782161'},
    {   'created': '2020-04-28T19:48:50.216317Z',
        'due_date': '2018-07-23T14:20:09Z',
        'status': 'Inactive',
        'summary': 'TechSmash firmware or operating system software drivers '
                   'may not sufficiently validate elliptic curve parameters '
            'users': ['emily.sarneso'],      'used to  'vendor_name': 'Microsoft'},
    {   'emails': ['emilytest@gmail.com'],
generate public keys during a Diffie-Hellman key '
        'id': 3551,         'users': ['emily.sarneso']exchange, which may allow a remote attacker to obtain the 'vendor_name':
'Testing Co'},     {   'emails': ['emilytest@gmail.com', 'emilytest2@gmail.com'],          'encryption key used by the device'id': 3549,
        'userstitle': ['emily.sarneso', 'Emily Ecoff'],'TechSmash implementations may not sufficiently validate '
           'vendor_name': 'Testing Vendor'}]   API: /vince/comm/api/cases # get a list of cases involved in
[   { 'elliptic curve parameters during Diffie-Hellman key exchange',
        'createdvuid': '2020-06-11T18:51:48.204903Z',
        'due_date': None,
        'status': 'Active',
        'summary': 'test',
        'title': 'test',
        'vuid': '785701'}3123125'}]


Get case metadata

Code Block
# get information about VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: vince/comm/api/case/701852/ # get information about a specific case
{   'created': '2020-06-11T18:51:48.204903Z',
    'due_date': None,
    'status': 'Active',
    {   'createdsummary': '2020-04-28T19:48:50.216317Ztest',
        'due_date'title': '2018-07-23T14:20:09Ztest',
        'statusvuid': 'Inactive',
        'summary': 'Bluetooth firmware or operating system software drivers '
                   'may not sufficiently validate elliptic curve parameters '785701'}

Get posts for case

Code Block
# get all posts for case VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/posts/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: vince/comm/api/case/posts/701852/ # get all posts for a specific case
[   {   'author': 'vince.user',
        'content': 'The          'used to generate public keys during a Diffie-Hellman key '[draft vulnerability '
                   'note](http://localhost:8000/vince/comm/case/18/notedraft/) '
        'exchange,  which may allow a remote attacker to obtain the 'has been updated.',
        'created': '2020-11-17T19:13:07.866230Z',
        'encryption key used by the device'pinned': True},
    {   'author': 'vince.user',
        'titlecontent': 'BluetoothPlease implementations[view maythis notdraft sufficientlyvulnerability validate '
                 'elliptic curve parameters during Diffie-Hellman key exchange 'note](http://localhost:8000/vince/comm/case/18/notedraft/).',
        'vuidcreated': '304725'}]

API: vince/comm/api/case/701852/ # get information about a specific case2020-11-17T19:07:56.624450Z',
        'pinned': True},
    {   'createdauthor': '2020-06-11T18:51:48.204903Zvince.user',
    'due_date': None,     'statuscontent': 'Activetest 2',
        'summarycreated': 'test2020-10-29T19:49:33.422875Z',
    'title': 'test',     'vuidpinned': '785701'}

API: vince/comm/api/case/posts/701852/ # get all posts for a specific case
[   False},
    {   'author': 'ecoffvince.user',
        'content': 'The [draft vulnerability 'test 1',
          'created': '2020-10-29T19:49:30.434164Z',
        'note](http://localhost:8000'pinned': False}]

Get original report for case

Code Block
# get the original report for VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/18report/notedraft701852/) '
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: /vince/comm/case/report/701582/ # get report for a specific case
{   'contact_email':  'has been updated.'joebob@vendor.example.com',
    'contact_name': 'Joe Bob',
 'created': '2020-11-17T19:13:07.866230Z',
     'contact_org': 'VendorExample',
     'pinnedcontact_phone': True}'5551231234',
    {   'author'date_submitted': 'ecoff2020-06-08T20:01:47.896419Z',
        'content'disclosure_plans': 'Please',
[view this draft vulnerability 'exploit_references': '',
      'product_name': 'test',
    'product_version':       'note](http://localhost:8000/vince/comm/case/18/notedraft/).'v. 12.3',
        'created'public_references': '2020-11-17T19:07:56.624450Z',
        'pinned'share_release': True},
    {   'author'vendor_name': 'emily.sarnesoTest Vendor',
        'content'vul_description': 'test 2This is the description',
        'created'vul_disclose': '2020-10-29T19:49:33.422875Z'True,
        'pinned'vul_discovery': False},'This is the discovery.',
 {   'authorvul_exploit': 'emily.sarneso',This is the exploit',
     'contentvul_exploited': 'test 1',
  True,
     'createdvul_impact': '2020-10-29T19:49:30.434164Z',
  This is the impact',
     'pinnedvul_public': False}]

API: /vince/True}

List vuls for case

Code Block
# get the vuls for VU#701852
api = 'https://kb.cert.org/vince/comm/api/case/vuls/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: /vince/comm/case/reportvuls/701582/ # get reportvuls for a specific case
[   {   'contact_emailcve': 'joebob@rapid7.com'None,
        'contactdate_nameadded': 'Joe Bob2020-11-19T21:43:17.210726Z',
    'contact_org    'description': 'Rapid 7',This is another vul without a cve.',
        'contact_phonename': '5551231234VU#785701.2'},
    'date_submitted{   'cve': '2020-06-08T20:01:47.896419Z19293',
    'disclosure_plans': '',     'exploitdate_referencesadded': '2020-10-22T15:30:11.888074Z',
 
  'product_name': 'test',     'product_versiondescription': 'v. 12.3Test this is a vul.',
    'public_references    'name': '',
    'share_release': True,
    'vendor_name': 'Test Vendor',
    'vul_description': 'This is the description',
    'vul_disclose': True,
    'vul_discovery': 'This is the discovery.',
    'vul_exploit': 'This is the exploit',CVE-2020-19293'}]

List vendors for case

Code Block
# get all the vendors involved in VU#701582 (also gets their status and statements)
api = 'https://kb.cert.org/vince/comm/api/case/vendors/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: /vince/comm/case/vendors/701582/ # get vendors for a specific case
[   {   'cert_addendum': None,
        'vuldate_exploitedadded': True,'2020-11-20T14:40:24.080886Z',
     'vul_impact   'references': 'This is the impact','http://www.example.com\nhttps://www.example.org',
        'vul_public': True}

API: /vince/comm/case/vuls/701582/ # get vuls for a specific case
[   {   'cve': Nonestatement': 'Test',
        'statement_date_added': '2020-11-19T2123T19:4350:1744.210726Z813809Z',
        'descriptionstatus': 'Unknown'This,
is another vul without a cve.',         'name''vendor': 'VU#785701.2VendorCorp'},
    {   'cvecert_addendum': '2020-19293'None,
        'date_added': '2020-10-22T1508T18:3027:1141.888074Z526942Z',
        'descriptionreferences': 'Test this is a vul.http://www.example.com\nhttps://www.example.org',
        'namestatement': 'CVE-2020-19293'}]Test',
   API: /vince/comm/case/vendors/701582/ # get vendors for a specific case [   {   'certstatement_addendumdate': None'2020-11-19T21:26:32.399730Z',
        'date_addedstatus': '2020-11-20T14:40:24.080886ZAffected',
        'referencesvendor': 'http://www.test.gov\nhttps://www.google.com',
        'statement': 'Test',
        'statement_date': '2020-11-23T19:50:44.813809Z',
        'status': 'Unknown',
        'vendor': 'Microsoft'},
    {   'cert_addendum': None,
        'date_added': '2020-10-08T18:27:41.526942Z',
        'references': 'http://www.test.govTesting Co'}]

List vendors including status and statement for each vul

Code Block
# get all the vendors and their status/statement/references for each specific vul
api = f'https://kb.cert.org/vince/comm/api/case/vendors/vuls/{case}/'
headers={'content-type':'application/json', 'Authorization': "Token {}".format(token) }
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
API: /vince/comm/case/vendors/vuls/701582/ # get vendors status for specific vuls
[   {   'references': 'http://www.example.com\nhttps://www.googleexample.comorg',
        'statement': 'Test',
        'statement_date': '2020-11-19T21:2647:3244.399730Z239683Z',
        'status': 'Affected',
        'vendor': 'Testing Co'}]
API: /vince/comm/case/vendors/vuls/701582/ # get vendors status for specific vuls
[,
        'vulnerability': 'VU#785701.2'},
    {   'references': 'http://www.testexample.govcom\nhttps://www.googleexample.comorg',
        'statement': 'TestThis is my statement',
        'statement_date': '2020-1110-19T2122T15:4738:4411.239683Z859615Z',
        'status': 'Not Affected',
        'vendor': 'Testing Co',
        'vulnerability': 'VU#785701.2CVE-2020-19293'},
    {   'references': 'http://www.test.gov\nhttps://www.google.com',
        'statement': 'This is my statement',
        'statement_date': '2020-1011-22T1520T15:3823:1118.859615Z997947Z',
        'status': 'Not AffectedUnknown',
        'vendor': 'Testing CoVendorCorp',
        'vulnerability': 'CVE-2020-19293VU#785701.2'},
    {   'references': '',
        'statement': '',
        'statement_date': '2020-11-20T15:23:18.997947Z938232Z',
        'status': 'Unknown',
        'vendor': 'MicrosoftVendorCorp',
        'vulnerability': 'VU#785701.2CVE-2020-19293'},]

Get vul note text, if available

Code Block
# get the {   'references': ''vulnerability note, if available
api =     'statement': '',
        'statement_date': '2020-11-20T15:23:18.938232Z',
        'status': 'Unknown',
        'vendor': 'Microsoft',
        'vulnerability': 'CVE-2020-19293'}]

f'https://kb.cert.org/vince/comm/api/case/note/{case}/'
headers={'content-type':'application/json', 'Authorization': "Token {}".format(token) }
r = requests.get(api, headers=headers, stream=True)
print(r.text)
Code Block
#API: /vince/comm/api/case/note/710582/ # get draft vul note
{   'content': '### Overview\r\n'
               '\r\n'
               'Testing API so need some content.\r\n'
               '\r\n'
               '\r\n'
               '### Description\r\n'
               '\r\n'
               '### Impact\r\n'
               'The complete impact of this vulnerability is not yet known.\r\n'
               '\r\n'
               '### Solution\r\n'
               'The CERT/CC is currently unaware of a practical solution to '
               'this problem.\r\n'
               '\r\n'
               '### Acknowledgements\r\n'
               'Thanks to the reporter who wishes to remain anonymous.\r\n'
               '\r\n'
               'This document was written by Emily Sarneso.',
    'datefirstpublished': None,
    'dateupdated': '2020-11-17T19:13:07.755453Z',
    'published': False,
    'references': ['www.googleexample.comorg', 'www.testexample.com'],
    'revision': 2,
    'title': 'test',
    'vuid': '785701'}

Update vendor status

Code Block
#update vendor status
api = f'https://kb.cert.org/vince/comm/api/case/vendor/statement/{case}/'
data = [{'vendor': 3548, 
 # vendor ID only required if user belongs to multiple vendors in a case
	'status':'Not Affected',  # required: ['Affected', 'Not Affected', 'Unknown']	'status':'Not Affected', 
	'references':["http://www.test.gov", "https://www.google.com"],  # not
required, must be a list 
	'share':True,
# not required, default = False
		'vulnerability':'CVE-2020-19293', # required - must be in the form 'CVE-xxxx-xxxxx' or 'VU#xxxxxx.n'
	'statement': 'This is my statement'}], 
# not required 


OLD JWT WAY: (This doesn't work anymore)

First you have to "login" to get your jwt (JSON web token).

Code Block
url = 'https://vince-test.cert-dit.org/vinny/auth/api-token-auth/'
r = requests.post(url, data={'username':user, 'password':password})
rj = r.json()
token = rj['token']

Examples:

Code Block
# get a list of your cases
headers={'Authorization': "Bearer {}".format(token)}
api = 'https://vince-test.cert-dit.org/vinny/api/cases/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)


# get information about VU#701852
api = 'https://vince-test.cert-dit.org/vinny/api/case/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)


# get all posts for case VU#701852
api = 'https://vince-test.cert-dit.org/vinny/api/case/posts/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)


# get the original report for VU#701852
api = 'https://vince-test.cert-dit.org/vinny/api/case/report/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)


# get the vuls for VU#701852
api = 'https://vince-test.cert-dit.org/vinny/api/case/vuls/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)


# get all the vendors involved in VU#701582 (also gets their status and statements)
api = 'https://vince-test.cert-dit.org/vinny/api/case/vendors/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)

And if you want to CURL...

Code Block
curl -X POST -F 'username=[username]' -F 'password=[password]' https://vince-test.cert-dit.org/vinny/auth/api-token-auth/


{"token":"eyJraWQiOiJ2OXdycTNXXC9FbG9SV2NLanUwNUdRd20wbzgzMm1IUGpVZklEYUcxWUpwaz0iLCJhbGciOiJSUzI1NiJ9.eyJjdXN0b206dGl0bGUiOiJEZXZlbG9wZXIxIiwic3ViIjoiNTM3ZGQ4NjItYWExYy00NDRjLWEzNzMtOWFlNTNjOTZiZTdiIiwiY29nbml0bzpncm91cHMiOlsiQ0VSVFwvQ0MiXSwiZW1haWxfdmVyaWZpZWQiOnRydWUsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTIuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0yXzFnb2hyTXNIViIsInBob25lX251bWJlcl92ZXJpZmllZCI6dHJ1ZSwiY29nbml0bzp1c2VybmFtZSI6IjUzN2RkODYyLWFhMWMtNDQ0Yy1hMzczLTlhZTUzYzk2YmU3YiIsInByZWZlcnJlZF91c2VybmFtZSI6IkVtaWx5IFNhcm5lc28iLCJnaXZlbl9uYW1lIjoiRW1pbHkiLCJsb2NhbGUiOiJVUyIsImF1ZCI6IjJldGhsZW9nZnVoY2swbDducGFycWhhc3VrIiwiZXZlbnRfaWQiOiIyZGE2N2RjOC00ZGU0LTQyMGMtOWIxYS0zNmM4OGM1YTI3MDkiLCJjdXN0b206T3JnYW5pemF0aW9uIjoiQ0VSVFwvQ0MiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTU4MDgyODYxNSwicGhvbmVfbnVtYmVyIjoiKzE0MTI1MTk2NDI2IiwiZXhwIjoxNTgwODMyMjE1LCJpYXQiOjE1ODA4Mjg2MTUsImZhbWlseV9uYW1lIjoiU2FybmVzbyIsImVtYWlsIjoiZWNvZmZAY2VydC5vcmcifQ.bVvX5gNPXoxOY3rgMyb4siY0T6KqR_F4GTiMR-xeGlE3BLuPVL646vsdflsjdlfjsldjfjalfjlajsdla;ldfjtAKp2Tl-6NCeCdJ4utVXpVNLSZ8pUpLclRGI1q--920eieh2O5dugp9tYrXf1D4OuiwMqzAM2MUFwwIFlCJB79O5THXrTtbpmfAp_XNafu94R5kP4VKtiMHd5_vRygPG2eydbCmox6oe1K44sZ1Guc5P4CQ9QYhpT7e8ICscnpKYvHWnnSAdcKguAmCcDPbytJywGohpT7ajxJAmmQRapbaqbHftlipKfkyjWPsxE0X3v8Uf-_WZG7z9yZjxdeeB-EP_V7z2WRoay8mWhjxJjCVHHbaxlqDA","email":"ecoff@cert.org"}




curl https://vince-test.cert-dit.org/vinny/api/case/report/701852/ -H 'Accept: application/json' -H 'Authorization: Bearer eyJraWQiOiJ2OXdycTNXXC9FbG9SV2NLanUwNUdRd20wbzgzMm1IUGpVZklEYUcxWUpwaz0iLCJhbGciOiJSUzI1NiJ9.eyJjdXN0b206dGl0bGUiOiJEZXZlbG9wZXIxIiwic3ViIjoiNTM3ZGQ4NjItYWExYy00NDRjLWEzNzMtOWFlNTNjOTZiZTdiIiwiY29nbml0bzpncm91cHMiOlsiQ0VSVFwvQ0MiXSwiZW1haWxfdmVyaWZpZWQiOnRydWUsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTIuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0yXzFnb2hyTXNIViIsInBob25lX251bWJlcl92ZXJpZmllZCI6dHJ1ZSwiY29nbml0bzp1c2VybmFtZSI6IjUzN2RkODYyLWFhMWMtNDQ0Yy1hMzczLTlhZTUzYzk2YmU3YiIsInByZWZlcnJlZF91c2VybmFtZSI6IkVtaWx5IFNhcm5lc28iLCJnaXZlbl9uYW1lIjoiRW1pbHkiLCJsb2NhbGUiOiJVUyIsImF1ZCI6IjJldGhsZW9nZnVoY2swbDducGFycWhhc3VrIiwiZXZlbnRfaWQiOiIyZGE2N2RjOC00ZGU0LTQyMGMtOWIxYS0zNmM4OGM1YTI3MDkiLCJjdXN0b206T3JnYW5pemF0aW9uIjoiQ0VSVFwvQ0MiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTU4MDgyODYxNSwicGhvbmVfbnVtYmVyIjoiKzE0MTI1MTk2NDI2IiwiZXhwIjoxNTgwODMyMjE1LCJpYXQiOjE1ODA4Mjg2MTUsImZhbWlseV9uYW1lIjoiU2FybmVzbyIsImVtYWlsIjoiZWNvZmZAY2VydC5vcmcifQ.bVvX5gNPXoxOY3rgMyb4siY0T6KqR_F4GTiMR-xeGlE3BLuPVL646vtAKp2Tl-6NCeCdJ4udsfsdfsdfsdfsfsdtVXpVNLSZ8pUpLclRGI1q--920eieh2O5dugp9tYrXf1D4OuiwMqzAM2MUFwwIFlCJB79O5THXrTtbpmfAp_XNafu94R5kP4VKtiMHd5_vRygPG2eydbCmox6oe1K44sZ1Guc5P4CQ9QYhpT7e8ICscnpKYvHWnnSAdcKguAmCcDPbytJywGohpT7ajxJAmmQRapbaqbHftlipKfkyjWPsxE0X3v8Uf-_WZG7z9yZjxdeeB-EP_V7z2WRoay8mWhjxJjCVHHbaxlqDA'


{"vendor_name":"AwesomeTools","product_name":"AwesomeTools Library v.1.2.3","product_version":"v.1.2.3","vul_description":"Buffer Overflow","vul_exploit":"Populate library data structure with string field with 10000 characters","vul_impact":"Code execution","vul_discovery":"Fuzzing","vul_public":false,"public_references":"","vul_exploited":false,"exploit_references":"","vul_disclose":false,"disclosure_plans":"","date_submitted":"2020-01-27T15:25:24.028635Z","share_release":true,"contact_name":"Emily Smith3w","contact_phone":"","contact_email":"emilysmith42675-usability3@yahoo.com","contact_org":"Usability"}
Warning

Items below this line are older API docs

Getting an Authentication Token

  1. Log in to VINCE.
  2. Go to your User Profile.
  3. Scroll down to "Generate API Key".
  4. Copy they API key to a safe place, you will not be able to access it again. If lost, you need to regenerate a new one.

Using the token

Code Block
headers={'Authorization': "Token {}".format(token)}

API Reference

List cases

Code Block
# get a list of your cases
api = 'https://[VINCE_URL]/comm/api/cases/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)

Retrieve a specific case

Code Block
# get information about VU#701852
api = 'https://[VINCE_URL]/comm/api/case/701852/'
r = requests.get	{'vendor': 3548, 
	'status':'Affected', 
	'statement':"Test", 
	'references':["http://www.test.gov","https://www.google.com"], 
	'share':True,
	'vulnerability':'VU#785701.2'}]
r = requests.post(api, headers=headers, stream=Truedata=json.dumps(data))
print(r.text)

...


Code Block
# get all posts for case VU#701852#update vendor status
api = f'https://[VINCE_URL]kb.cert.org/vince/comm/api/case/vendor/postsstatement/701852{case}/'
rdata = requests.get(api, headers=headers, stream=True)
print(r.text)

Retrieve original report for a case

Code Block
# get the original report for VU#701852
api = 'https://[VINCE_URL]/comm/api/case/report/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)

Retrieve vuls for a case

Code Block
# get the vuls for VU#701852
api = 'https://[VINCE_URL]/comm/api/case/vuls/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)

Retrieve vendors for a case

Code Block
# get all the vendors involved in VU#701582 (also gets their status and statements)
api = 'https://[VINCE_URL]/comm/api/case/vendors/701852/'
r = requests.get(api, headers=headers, stream=True)
print(r.text)[{'vendor': 3548,   # vendor ID only required if user belongs to multiple vendors in a case
	'status':'Not Affected',  # required: ['Affected', 'Not Affected', 'Unknown']
	'references':["http://www.test.gov", "https://www.google.com"],  # not required, must be a list 
	'share':True, # not required, default = False
	'vulnerability':'CVE-2020-19293', # required - must be in the form 'CVE-xxxx-xxxxx' or 'VU#xxxxxx.n'
	'statement': 'This is my statement'}]  # not required