--- name: wstg-info-06 description: "Identify Application Entry Points" category: information-gathering owasp_id: WSTG-INFO-06 version: "1.0.0" author: cyberstrike-official tags: [recon, fingerprint, enumeration, wstg, info] tech_stack: [] cwe_ids: [CWE-200] chains_with: [wstg-inpv-05, wstg-inpv-09, wstg-conf-05] prerequisites: [wstg-info-01] severity_boost: {} --- # wstg-info-06 ## Test ID WSTG-INFO-06 ## Test Name Identify Application Entry Points ## High-Level Description Entry points are the interfaces through which user-supplied data enters the application. Identifying all entry points is critical for mapping the application's attack surface before conducting targeted security tests. Entry points include URL parameters, POST body data, HTTP headers, cookies, file uploads, and any other mechanism that accepts user input. A comprehensive understanding of entry points allows penetration testers to systematically test each input vector for vulnerabilities such as injection, access control bypasses, and business logic flaws. --- ## What to Check ### Entry Point Categories - [ ] URL query string parameters (GET) - [ ] POST body parameters - [ ] HTTP headers (custom and standard) - [ ] Cookies and session tokens - [ ] Hidden form fields - [ ] File upload fields - [ ] RESTful URL path parameters - [ ] JSON/XML request bodies - [ ] WebSocket messages - [ ] GraphQL queries - [ ] SOAP envelopes ### Information to Document - [ ] Parameter names and locations - [ ] Data types (string, integer, boolean, etc.) - [ ] Accepted value ranges - [ ] Required vs optional parameters - [ ] Authentication requirements - [ ] Multi-step process flows - [ ] State-dependent parameters - [ ] Encoding schemes used --- ## How to Test ### Step 1: Configure Proxy and Browse Application #### Burp Suite Setup 1. Configure browser to use Burp proxy (127.0.0.1:8080) 2. Enable interception or passive logging 3. Add target to scope 4. Browse all application functionality 5. Review Site Map for discovered endpoints #### OWASP ZAP Setup 1. Launch ZAP and configure browser proxy 2. Enable HUD or traditional interface 3. Add target URL to context 4. Spider the application 5. Review Sites tree for entry points ### Step 2: Analyze GET Requests ```http GET /app/search?query=test&category=all&page=1&sort=desc HTTP/1.1 Host: target.com Cookie: session=abc123; preference=dark User-Agent: Mozilla/5.0 Referer: https://target.com/home X-Requested-With: XMLHttpRequest ``` #### Entry Points in GET Request | Location | Parameter | Value | | ------------ | ---------------- | -------------- | | Query String | query | test | | Query String | category | all | | Query String | page | 1 | | Query String | sort | desc | | Cookie | session | abc123 | | Cookie | preference | dark | | Header | User-Agent | Mozilla/5.0 | | Header | Referer | https://... | | Header | X-Requested-With | XMLHttpRequest | ### Step 3: Analyze POST Requests ```http POST /app/checkout HTTP/1.1 Host: target.com Content-Type: application/x-www-form-urlencoded Cookie: session=abc123 product_id=100&quantity=2&price=50.00&discount_code=SAVE10&shipping=express ``` #### Entry Points in POST Request | Location | Parameter | Value | Notes | | -------- | ------------- | ------- | -------------------- | | Body | product_id | 100 | Potential IDOR | | Body | quantity | 2 | Integer manipulation | | Body | price | 50.00 | Price tampering | | Body | discount_code | SAVE10 | Brute-force target | | Body | shipping | express | Business logic | ### Step 4: Analyze JSON/API Requests ```http POST /api/v1/users HTTP/1.1 Host: target.com Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1... X-API-Key: abcd1234 { "username": "newuser", "email": "user@example.com", "role": "user", "permissions": ["read", "write"], "metadata": { "source": "web", "version": "2.0" } } ``` #### Entry Points in JSON Request | Location | Parameter | Path | Type | | -------- | ------------- | ----------------- | --------- | | Header | Authorization | - | JWT Token | | Header | X-API-Key | - | API Key | | Body | username | $.username | String | | Body | email | $.email | Email | | Body | role | $.role | Enum | | Body | permissions | $.permissions[] | Array | | Body | source | $.metadata.source | Nested | ### Step 5: Analyze RESTful URL Patterns ``` GET /api/users/123/orders/456/items ``` #### URL Path Parameters | Segment | Type | Description | | ------- | ------------ | -------------------- | | users | Resource | User collection | | 123 | ID Parameter | User ID (IDOR test) | | orders | Resource | Orders collection | | 456 | ID Parameter | Order ID (IDOR test) | | items | Resource | Items sub-resource | ### Step 6: Analyze Response Headers ```http HTTP/1.1 200 OK Server: nginx/1.18.0 Set-Cookie: session=newvalue; HttpOnly; Secure Set-Cookie: tracking=xyz; Path=/ X-Request-ID: req-12345 X-Debug-Mode: enabled Cache-Control: no-cache Content-Type: application/json ``` #### Notable Response Elements | Header | Value | Security Note | | ------------ | ------------ | ------------------- | | Server | nginx/1.18.0 | Version disclosure | | Set-Cookie | session=... | Session management | | X-Debug-Mode | enabled | Debug info leak | | X-Request-ID | req-12345 | Tracking identifier | ### Step 7: Document Hidden Form Fields ```html
``` #### Hidden Field Analysis | Field | Value | Risk | | ---------- | ------ | -------------------- | | csrf_token | abc123 | Token strength | | user_id | 500 | IDOR vulnerability | | base_price | 100.00 | Price manipulation | | is_admin | false | Privilege escalation | ### Step 8: Map Multi-Step Processes Document workflows that require multiple requests: ``` 1. GET /cart → View cart 2. POST /cart/apply-coupon → Apply discount 3. GET /checkout → Checkout page 4. POST /checkout/address → Submit address 5. POST /checkout/payment → Submit payment 6. POST /checkout/confirm → Confirm order ``` #### Process Flow Entry Points | Step | Method | Key Parameters | State | | ---- | ------ | ----------------------- | --------------- | | 1 | GET | - | Unauthenticated | | 2 | POST | coupon_code | Cart active | | 3 | GET | - | Authenticated | | 4 | POST | address_id, new_address | Cart active | | 5 | POST | card_token, save_card | Address set | | 6 | POST | confirm_token | Payment ready | ### Step 9: Identify WebSocket Endpoints ```javascript // Browser DevTools > Network > WS ws://target.com/socket wss://target.com/secure-socket // WebSocket message format {"action": "subscribe", "channel": "orders", "user_id": 123} ``` ### Step 10: Document GraphQL Entry Points ```graphql # GraphQL query entry points query { user(id: 123) { name email orders { id total } } } mutation { updateUser(id: 123, role: "admin") { success } } ``` --- ## Tools ### Proxy Tools | Tool | Description | Key Feature | | ----------------- | ----------------- | ------------------------------ | | **Burp Suite** | Web proxy | Site map, parameter extraction | | **OWASP ZAP** | Open-source proxy | Automated spider, HUD | | **Fiddler** | Traffic inspector | .NET integration | | **mitmproxy** | CLI proxy | Scriptable interception | | **Charles Proxy** | macOS proxy | SSL proxying | ### Automated Discovery | Tool | Description | Usage | | --------------------------- | -------------------------- | ----------------------------- | | **Attack Surface Detector** | Source code analysis | `java -jar asd.jar