[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GXJCJ0ASVNK9749VX5KJ94":3,"skill-same:01M6GXJCJ0ASVNK9749VX5KJ94":64},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6GXJCJ0ASVNK9749VX5KJ94","0xklen-audit-open-redirect-handling",null,"jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-audit-open-redirect-handling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-audit-open-redirect-handling\u002FSKILL.md",[],[19,20,21],"audit","open","0xklen audit open redirect handling","2026-11-10 10:12:30",false,"---\nname: audit-open-redirect-handling\ndescription: Use when a parameter controls a redirect target, such as next= or returnTo=. Tests protocol-relative, backslash, and javascript: bypasses, and confines targets to relative paths.\n---\n\n# Audit open redirect handling\n\nAn open redirect turns your trusted domain into a phishing launchpad and can leak OAuth tokens or\nsession identifiers when the redirect target is a path the app appends data to. The safe rule is to\naccept only a relative path on your own origin, never an absolute URL from input.\n\n## Procedure\n\n1. Find redirect sinks driven by a request parameter:\n\n       rg -n \"redirect\\(|RedirectResponse|res\\.redirect|Location:|window\\.location|history\\.replaceState\" src\u002F \\\n         | rg -i \"next|return|returnTo|redirect|continue|url|goto|target\"\n\n2. Identify exactly what the code does with the value: `urlparse`, prefix check, equality against an\n   allowlist, or nothing.\n\n3. Probe with the bypass family against staging and record the `Location` header:\n\n       for v in 'https:\u002F\u002Fevil.example' '\u002F\u002Fevil.example' '\u002F\\evil.example' '\\\\\\\\evil.example' \\\n                '\u002F%09\u002Fevil.example' 'https:evil.example' 'javascript:alert(1)' 'data:text\u002Fhtml,x'; do \\\n         echo \"== $v\"; \\\n         curl -s -o \u002Fdev\u002Fnull -D - \"https:\u002F\u002Fapp.example.com\u002Flogin?next=$v\" | rg -i '^location:'; \\\n       done\n\n4. Fix by accepting a relative path only. Reject anything with a scheme or a network location:\n\n       from urllib.parse import urlparse\n       def safe_next(raw, default=\"\u002F\"):\n           p = urlparse(raw)\n           if p.scheme or p.netloc:            # absolute or protocol-relative\n               return default\n           if not raw.startswith(\"\u002F\") or raw.startswith(\"\u002F\u002F\"):\n               return default\n           return raw\n\n   Note `\u002F\u002Fevil.example` parses with `netloc='evil.example'`, so the netloc check already rejects it.\n\n5. Prefer an indirect reference: keep an allowlist map of `?next=settings` → `\u002Faccount\u002Fsettings` and\n   never echo a raw path. This also blocks chained redirects.\n\n6. Reject backslashes and encoded slash variants; some stacks treat `\\` as `\u002F` and `%2f` as a path\n   separator. Decode once, then check.\n\n7. Apply the same check when the target is stored (a `return_url` saved in the session) — validate\n   at use, not just at save.\n\n## Pitfalls\n\n- A prefix check `target.startswith(\"https:\u002F\u002Fapp.example.com\")` accepts\n  `https:\u002F\u002Fapp.example.com.evil.example`.\n- `\u002F\u002Fevil.example` is protocol-relative and is missed by a check that only looks for `http`.\n- `\u002F\\evil.example` and `\\\u002Fevil.example` are treated as absolute by some browsers.\n- `javascript:` and `data:` in a client-side `location.href =` render without a network round trip.\n- Allowlisting by URL parse but then string-concatenating the raw value reintroduces the hole.\n- OAuth `redirect_uri` validation is a stricter, separate control — do not reuse this loose check\n  for it.\n\n## Verification\n\n    for v in '\u002F\u002Fevil.example' 'https:\u002F\u002Fevil.example' '\u002F\\evil.example' 'javascript:alert(1)'; do \\\n      loc=$(curl -s -o \u002Fdev\u002Fnull -D - \"https:\u002F\u002Fapp.example.com\u002Flogin?next=$v\" | rg -i '^location:'); \\\n      echo \"$v -> $loc\"; \\\n    done\n\nPass: every `Location` stays on the app origin (or falls back to the default) for all payloads.\nReport the redirect parameter, the payloads tested, and the confinement rule applied.\n","# Audit open redirect handling\n\nAn open redirect turns your trusted domain into a phishing launchpad and can leak OAuth tokens or\nsession identifiers when the redirect target is a path the app appends data to. The safe rule is to\naccept only a relative path on your own origin, never an absolute URL from input.\n\n## Procedure\n\n1. Find redirect sinks driven by a request parameter:\n\n       rg -n \"redirect\\(|RedirectResponse|res\\.redirect|Location:|window\\.location|history\\.replaceState\" src\u002F \\\n         | rg -i \"next|return|returnTo|redirect|continue|url|goto|target\"\n\n2. Identify exactly what the code does with the value: `urlparse`, prefix check, equality against an\n   allowlist, or nothing.\n\n3. Probe with the bypass family against staging and record the `Location` header:\n\n       for v in 'https:\u002F\u002Fevil.example' '\u002F\u002Fevil.example' '\u002F\\evil.example' '\\\\\\\\evil.example' \\\n                '\u002F%09\u002Fevil.example' 'https:evil.example' 'javascript:alert(1)' 'data:text\u002Fhtml,x'; do \\\n         echo \"== $v\"; \\\n         curl -s -o \u002Fdev\u002Fnull -D - \"https:\u002F\u002Fapp.example.com\u002Flogin?next=$v\" | rg -i '^location:'; \\\n       done\n\n4. Fix by accepting a relative path only. Reject anything with a scheme or a network location:\n\n       from urllib.parse import urlparse\n       def safe_next(raw, default=\"\u002F\"):\n           p = urlparse(raw)\n           if p.scheme or p.netloc:            # absolute or protocol-relative\n               return default\n           if not raw.startswith(\"\u002F\") or raw.startswith(\"\u002F\u002F\"):\n               return default\n           return raw\n\n   Note `\u002F\u002Fevil.example` parses with `netloc='evil.example'`, so the netloc check already rejects it.\n\n5. Prefer an indirect reference: keep an allowlist map of `?next=settings` → `\u002Faccount\u002Fsettings` and\n   never echo a raw path. This also blocks chained redirects.\n\n6. Reject backslashes and encoded slash variants; some stacks treat `\\` as `\u002F` and `%2f` as a path\n   separator. Decode once, then check.\n\n7. Apply the same check when the target is stored (a `return_url` saved in the session) — validate\n   at use, not just at save.\n\n## Pitfalls\n\n- A prefix check `target.startswith(\"https:\u002F\u002Fapp.example.com\")` accepts\n  `https:\u002F\u002Fapp.example.com.evil.example`.\n- `\u002F\u002Fevil.example` is protocol-relative and is missed by a check that only looks for `http`.\n- `\u002F\\evil.example` and `\\\u002Fevil.example` are treated as absolute by some browsers.\n- `javascript:` and `data:` in a client-side `location.href =` render without a network round trip.\n- Allowlisting by URL parse but then string-concatenating the raw value reintroduces the hole.\n- OAuth `redirect_uri` validation is a stricter, separate control — do not reuse this loose check\n  for it.\n\n## Verification\n\n    for v in '\u002F\u002Fevil.example' 'https:\u002F\u002Fevil.example' '\u002F\\evil.example' 'javascript:alert(1)'; do \\\n      loc=$(curl -s -o \u002Fdev\u002Fnull -D - \"https:\u002F\u002Fapp.example.com\u002Flogin?next=$v\" | rg -i '^location:'); \\\n      echo \"$v -> $loc\"; \\\n    done\n\nPass: every `Location` stays on the app origin (or falls back to the default) for all payloads.\nReport the redirect parameter, the payloads tested, and the confinement rule applied.\n",{},"main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fpayments\u002F0xklen-audit-open-redirect-handling",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill 0xklen-audit-open-redirect-handling",{"tool":42,"command":43},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill 0xklen-audit-open-redirect-handling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill 0xklen-audit-open-redirect-handling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-audit-open-redirect-handling\u002FSKILL.md",true,[50,54,60],{"path":51,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":15},"LICENSE","许可证",1063,{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"SOURCE.md","REFERENCE","参考文档",354,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-audit-open-redirect-handling\u002FSOURCE.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"TRUST.auto.yaml",2250,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002F0xklen-audit-open-redirect-handling\u002FTRUST.auto.yaml",[65,74,82,90,98,106],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":73},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":73},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":73},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":73},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":73},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]