Skip to content
Snippets Groups Projects
Commit d2a31937 authored by Christian Henke's avatar Christian Henke
Browse files

add fuzzer and fix found errors

parent 15b89167
Branches secure-api
No related tags found
1 merge request!1Draft: add restrictive API to wall off elasticsearch access
This diff is collapsed.
getAliases
getMapping
getDatasetGeneCounts
getDatasetContigStats
getDatasetBinCounts
getPhyloAggregation
getNeighbors
getPage
getContigsPage
getGoTermsAggregation
getPathwayDistribution
getPathwayList
getPathway
getPathwayGeneDistribution
getBinsAggregration
getBins
getAutocompletionForGeneField
searchAllForGeneIds
resolveCartDataset
getEcCount
getGene
searchAllForGeneIdOrAmino
getContig
getContigGenes
#!/bin/bash
# empty requests
ffuf -w endpoints -X POST -H 'Content-Type: application/x-www-form-urlencoded' -u http://localhost/api/FUZZ -fc 200
# with params and values
ffuf -w endpoints -w params:PARAM -w values:VAL -X POST -H 'Content-Type: application/x-www-form-urlencoded' -u http://localhost/api/FUZZ -fc 200 -d "PARAM=VAL"
# with params and values for existing index
ffuf -w endpoints -w params:PARAM -w values:VAL -X POST -H 'Content-Type: application/x-www-form-urlencoded' -u http://localhost/api/FUZZ -fc 200 -d "index=test3\&dataset=test3\&PARAM=VAL"
\ No newline at end of file
after
boolQuery
columns
contigId
dataset
datasets
ecPrefix
extraFields
field
filterBin
from
geneid
geneids
gene_query
hierarchyFilter
includedColumns
index
input
limit
longerThan
maxContamination
minCompleteness
nonPartialOnly
pageSize
pathId
prefix
query
range
showOnlyContigsLongerThan
showOnlyEmptyContigs
showVirSorterHitsOnly
size
sort
subjects
textQuery
withCoverage
withNucleotide
\ No newline at end of file
test
test3
null
undefined
None
{}
{"a": 3}
[]
False
false
-1
1
234567890023850927852023523523523523523850927852023523523523523523850927852023523523523523523850927852023523523523523523
}↓[][←ħ↓¼7h9˝ĸøſ€þħ³{←\}²¸¹¸¹ĸł…–»µ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment