pentest-api
Testing an authorized REST, GraphQL or gRPC API: object- and function-level authorization, injection, mass assignment, rate limiting and resource abuse, and token handling, working from the schema or observed traffic. Read before testing an API.
- License 许可
- Apache-2.0
- 所属仓库
- enowdev/enowxcli
- 最近更新
- 2026-10-06
- Stars
- ★ 67
- Forks
- 21
01 前言 Front Matter
- name
- pentest-api
- description
- Testing an authorized REST, GraphQL or gRPC API: object- and function-level authorization, injection, mass assignment, rate limiting and resource abuse, and token handling, working from the schema or observed traffic. Read before testing an API.
02 资源文件 4
- 参考文档references/filtering.md9.8 KB
- 参考文档references/importing_exporting.md10.6 KB
- 参考文档references/similarity.md12.7 KB
- 参考文档references/workflows.md21.7 KB
03 SKILL.md 正文
API testing
APIs fail most often at authorization, because the client is no longer the gatekeeper. Test only authorized endpoints, with benign proofs.
Authorization (BOLA/BFLA: the top API risks)
- Object level (BOLA/IDOR): call an endpoint with another object's id from your own token. If you get data that is not yours, that is broken object-level authorization, the most common API vulnerability.
- Function level (BFLA): call admin or privileged operations from a normal token. Try hidden and undocumented methods.
The rest
- Mass assignment: send extra fields (
"role":"admin","verified":true) and see if the API binds them. - Injection: the same classes as web, plus NoSQL and GraphQL query abuse.
- Rate limiting and resource abuse: unbounded page sizes, expensive GraphQL queries, missing limits on costly endpoints. Prove the gap without actually degrading the service.
- Tokens: scope and audience enforcement, expiry, refresh-token reuse, JWT algorithm and secret strength.
How
Work from the schema (OpenAPI/GraphQL introspection) or from observed traffic.
Enumerate every operation and its parameters, then test each against the checks
above. Record confirmed issues with report_finding, with the exact request.
See also: [[pentest-web]], [[pentest-reporting]].
04 同仓库更多 Skills
demo-skill
Project-scope demo skill for tests.
writing
Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.
ui
Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.
ui-themes
Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.
ui-structure
Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.
ui-stack-vue
Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.