1. Home
  2. Docs
  3. API Documentation
  4. Vulnerabilities
  5. GetVulnById

GetVulnById

Route: https://kayran.live/api/GetVulnsScan

Using this feature will allow you to view a certain Vulnerability.

Note : deleting a certain scan will also delete the vulnerabilities from the database which prevents you from viewing them.

Roles Required: Admin and User. Private Users can only View Vulnerabilities from Scans they created.

Request Syntax

{
    "apiKey": "String",
    "vulnId": 123456789
}

Request Parameters

Parameters being used in the Request

Parameter Name :

apiKey

Parameter Usage and Options :

Your Kayran given API Key.

How do I get it ? :

Located in the “Profile” section.

Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.

Type :

String

Is it Optional ? :

No.


Parameter Name :
vulnId

Parameter Usage and Options :

Id of the requested vulnerability.

How do I get it ? :

By entering the vulnerability page in Kayran, on the address bar, the “id=231231232133”, use the number that appears. You can also use the “GetAllVulns”, “GetVulnsScan” or the “GetScan” functions.

Type :

Integer

Is it Optional ? :

No.


Successful Response



{
    "Error": 0,
    "Function": "GetVulnById",
    "Data": {
        "id": 92456,
        "id_connection": "123456",
        "url": "https://example.com/",
        "action": "https://example.com/",
        "vuln_name": "CSP header not implemented",
        "severity": "Low",
        "request": "GET /...",
        "response": "HTTP/1.1 200 OK\...",
        "key": "https://example.com/",
        "payload": "",
        "method": "GET",
        "params": "",
        "cookies": "None",
        "headers": "Headers({'...",
        "status_code": "123",
        "content_type": "",
        "fixed": "0",
        "token": "String",
        "img": "/",
        "version": "",
        "description": "During the scan, Kayran managed to find ...",
        "recommendation": "...",
        "links": "...",
        "more_details": ""
    }
}

Errors and their Possible Causes

For more information, please refer to the General Errors section.