【发布时间】:2016-09-17 04:11:24
【问题描述】:
如何防止针对 Apollo 服务器的嵌套攻击,查询如下:
{
authors {
firstName
posts {
title
author {
firstName
posts{
title
author {
firstName
posts {
title
[n author]
[n post]
}
}
}
}
}
}
}
换句话说,如何限制查询中提交的递归数?这可能是一个潜在的服务器漏洞。
【问题讨论】:
标签: graphql graphql-js apollo