T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:84- Finding
Stress tests can target systems without verifying authorization
- Content
View full analysis
**Parameter Confirmation (Smart Mode)** > > - All required parameters present → echo summary + execute immediately. No re-confirmation. > - Missing/ambiguous parameter → ask user before proceeding. > - Destructive ops (delete/stop) → ALWAYS require explicit user confirmation. ``` ```bash aliyun pts save-pts-scene --scene '{ "SceneName":"YOUR_SCENE_NAME_HERE", "RelationList":[{ "RelationName":"link-1", "ApiList":[{ "ApiName":"api-1", "Url":"http://YOUR_TARGET_URL", "Method":"GET", "TimeoutInSecond":5000 }] }], "LoadConfig":{ "TestMode":"concurrency_mode", "MaxRunningTime":1, "Configuration":{ "AllConcurrencyBegin":5, "AllConcurrencyLimit":5 } } }' --read-timeout 60 --connect-timeout 10 ``` ```text > **[MUST] Pre-flight Safety Checks** — Starting a stress test sends significant traffic to the > target system. ALL of the following checks MUST pass before executing `start-pts-scene`: > > 1. **Idempotency guard** — Run `get-pts-scene-running-status --scene-id `. > If the status is `RUNNING` or `SYNCING`, the test is already in progress — skip the start > command and proceed to monitoring. Do NOT start a duplicate test. > 2. **Retrieve and verify scene configuration** — Run `get-pts-scene --scene-id ` and > confirm the response contains a valid `SceneName`, at least one `RelationList` entry with a > non-empty `Url`, and a valid `LoadConfig` (non-zero `MaxRunningTime` and concurrency). > If any field is missing or empty, abort and notify the user. > 3. **Display test summary** — Present the following to the user: > - Target URL(s) > - Concurrency level > - Test duration > - Test mode (concurrency / TPS) > > If all values ...[truncated 2387 chars]- Remediation
View remediation
