Skip to content

Commit

Permalink
Merge pull request #238 from cerberauth/remove-discovery-curl-scan
Browse files Browse the repository at this point in the history
Remove OpenAPI and GraphQL discovery from curl scan
  • Loading branch information
emmanuelgautier authored Dec 20, 2024
2 parents 6dbb041 + 49c9824 commit a922459
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scenario/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
"github.com/cerberauth/vulnapi/internal/request"
"github.com/cerberauth/vulnapi/report"
"github.com/cerberauth/vulnapi/scan"
discoverablegraphql "github.com/cerberauth/vulnapi/scan/discover/discoverable_graphql"
discoverableopenapi "github.com/cerberauth/vulnapi/scan/discover/discoverable_openapi"
)

func NewURLScan(method string, url string, data string, client *request.Client, opts *scan.ScanOptions) (*scan.Scan, error) {
Expand Down Expand Up @@ -57,9 +55,6 @@ func NewURLScan(method string, url string, data string, client *request.Client,
return nil, err
}

urlScan.AddOperationScanHandler(scan.NewOperationScanHandler(discoverableopenapi.DiscoverableOpenAPIScanID, discoverableopenapi.ScanHandler))
urlScan.AddOperationScanHandler(scan.NewOperationScanHandler(discoverablegraphql.DiscoverableGraphQLPathScanID, discoverablegraphql.ScanHandler))
WithAllCommonScans(urlScan)

return urlScan, nil
}

0 comments on commit a922459

Please sign in to comment.