Burp Suite User Forum

Create new post

How do I get Request/Response with each Issue?

Manasa | Last updated: Nov 24, 2021 07:11AM UTC

I see from the Issues object, the request response with each of the issue is with Evidence field. But I couldn't frame graphql to get this. Can someone help with the query to fetch the associated evidence with each issue?

Uthman, PortSwigger Agent | Last updated: Nov 24, 2021 10:40AM UTC

Hi Manasa,

I've constructed an example below:

query ScanIssuesAndRequestResponseData {
  scan(id: 178) {
    id
    issues(start: 0, count: 1000) {
      issue_type {
        name
        description_html
        remediation_html
      }
      evidence {
        ... on Request {
          request_index
          request_count
          request_segments {
            ... on DataSegment {
              data_html
            }
            ... on HighlightSegment {
              highlight_html
            }
          }
        }
        ... on Response {
          response_index
          response_count
          response_segments {
            ... on DataSegment {
              data_html
            }
            ... on HighlightSegment {
              highlight_html
            }
          }
        }
      }
    }
  }
}

Can you give it a try and let me know what you think?

Manasa | Last updated: Nov 24, 2021 01:14PM UTC

Yes, it works. Thanks much for the quick response.

Uthman, PortSwigger Agent | Last updated: Nov 24, 2021 01:28PM UTC

No problem! Let me know if you have any further questions/issues.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.