T09 · Insecure Skill Coding Practices
- Location
SKILL.md:20- Finding
Steam Session Cookie Unnecessarily Required and Exposed Through Command-Line Arguments
- Content
View full analysis
Application tab > Cookies > `https://steamcommunity.com` - Copy the value of the `steamLoginSecure` cookie 3. Set environment variables: ```bash export STEAM_ID="your-steamid64" export STEAM_COOKIES="steamLoginSecure=your-cookie-value" ``` ``` The credential is subsequently expanded into `curl` command-line arguments: ```bash curl -s "https://steamcommunity.com/inventory/$STEAM_ID/$APP_ID/2?l=english&count=2000" \ -H "Cookie: $STEAM_COOKIES" | jq '.' ``` The same pattern is repeated for CS2 inventory retrieval, item summaries, item details, and paginated requests: ```bash curl -s "https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000" \ -H "Cookie: $STEAM_COOKIES" | jq '.' curl -s "https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000" \ -H "Cookie: $STEAM_COOKIES" | jq '[.descriptions[] | {market_hash_name, type}]' curl -s "https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000" \ -H "Cookie: $STEAM_COOKIES" | jq '{assets: [.assets[] | {assetid, classid, instanceid, amount}], total: .total_inventory_count}' curl -s "https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000&start_assetid=$LAST_ASSET_ID" \ -H "Cookie: $STEAM_COOKIES" | jq '.' ``` ### Technical Analysis The Skill instructs users to manually extract the sensitive `steamLoginSecure` authentication cookie and supply it to every inventory request. Shell expansion of `$STEAM_COOKIES` places the credential in the argument list passed to `curl` ...[truncated 2525 chars]- Remediation
View remediation
