GraphQL API Vulnerabilities - PortSwigger
GraphQL API Vulnerabilities - PortSwigger
PRACTITIONER
GraphQL API vulnerabilities 8 of 29
query {
products {
id
name
listed
}
}
CONTINUE
{
"data": {
"products": [
{
"id": 1,
"name": "Product 1",
"listed": true
},
{
"id": 2,
"name": "Product 2",
"listed": true
},
{
"id": 4,
"name": "Product 4",
"listed": true
}
]
}
}
By querying the ID of the missing product, we can get its details, even though it is not listed on the
was not returned by the original product query.
shop and
CONTINUE
query {
product(id: 3) {
id
name
listed
}
}
{
"data": {
"product": {
"id": 3,
"name": "Product 3",
"listed": no
}
}
}
CONTINUE