SRC Bug Bounty for Beginners: A Practical Guide from Logic Flaws to Broken Access Control
This beginner-friendly guide explains how to start SRC bug bounty hunting by focusing on logic flaws and broken access control rather than complex injection techniques. It covers building an asset map, defining a role matrix, structuring captured requests into comparable variables, understanding payment state-machine weaknesses, and running a standardized authorization testing workflow. It also addresses information disclosure and weak credentials, plus how to write effective reports with server-side remediation advice. All testing is framed within legal authorization and approved scope.
SRC Bug Bounty for Beginners: A Practical Guide from Logic Flaws to Broken Access Control
1. Why Beginners Should Start with Logic Flaws
Many beginners land their first valid bug not through sophisticated injection techniques, but by observing how a business flow actually works. Injection flaws are often already weakened by baseline protections and secure framework defaults. Logic flaws, on the other hand, come from the gap between how the business is designed and how the server validates requests, a gap that generic protection rules cannot fully cover.
It is worth being clear up front: bug hunting is not limited to SQL injection, command execution, file upload, and cross-site scripting. More common issues are logic defects, information disclosure, weak passwords, and misconfigured permissions. The target is not only a traditional website either. It can also be a mini-program client, a mobile app, an open API, or one of the many operations backends.
This article only discusses methods within legal authorization. All testing should be performed inside an authorized program, on authorized assets, and within the authorized time window.
2. Build Asset and Role Awareness Before Testing
2.1 Asset Mapping Determines Test Coverage
The most common waste of time for beginners is staring at a single page and clicking around repeatedly. A more effective approach is to draw an asset map first:
- Main site and subdomain entry points;
- Open APIs and the APIs used by mobile clients;
- Static resource directories, upload directories, backups, and configuration files;
- Third-party callback URLs and message notification endpoints.
The value of asset mapping is that logic flaws often hide in “non-main-flow” entry points, such as password recovery, coupon redemption, order notes, and message deletion.
2.2 A Role Matrix Is the Prerequisite for Access Control Testing
Access control testing cannot rely on guesswork. You need at least two different types of accounts to form a permission matrix:
| Resource operation | Guest | Regular user | Admin role |
|---|---|---|---|
| View another user’s profile | Should be denied | Should be denied | Allowed |
| Edit own profile | Should be denied | Allowed | Allowed |
| Delete any comment | Should be denied | Should be denied | Allowed |
Only after defining “who should be able to do what” can you judge whether the data returned by a given request is the result of broken access control.
3. Traffic Analysis: Break Requests into Comparable Variables
Capturing traffic is the most essential skill at the beginner stage. The goal is not to “capture a request,” but to structure it and identify controllable parameters and permission boundaries.
It helps to break each request into three layers:
- Address layer: does the path contain a resource identifier, such as a user ID, order ID, or directory name;
- Parameter layer: does the body contain amount, status, owner, or role fields;
- Context layer: can the token, device identifier, or origin identifier in the headers be replaced.
An illustrative, sanitized and neutralized request structure:
POST /api/order/update HTTP/1.1Host: example.testContent-Type: application/json{"order_id": "10086","amount": 1,"status": "paid","owner_id": "20001"}
Key questions: does the server trust the amount and status submitted by the client; does it validate the owner; does it rely only on hidden front-end fields.
4. Understanding Payment Logic Flaws Correctly
“Change the amount” is the phrase beginners know best, but in real scenarios the server usually recalculates and validates the amount, so simply changing a number has a low success rate. What deserves more attention are state-machine defects in the payment flow:
- Can the order status be skipped, for example jumping from unpaid directly to paid;
- Can discounts, points, or credits be stacked or reused;
- Does the callback notification validate the source and signature, and can it be replayed;
- Under concurrent requests, can a single deduction be redeemed multiple times.
The right testing mindset is to treat payment as a state-transition process and verify, one by one, whether the server-side validation for each transition is complete, rather than just changing one number.
5. Broken Access Control: The Most Common and Most Rewarding Direction
The essence of broken access control is performing an operation that belongs to another user’s permissions, beyond your own. Put plainly, it means seeing data you should not see or taking an action you should not take. It is usually divided into horizontal access control (between peers at the same level) and vertical access control (between a regular user and an admin role).
5.1 How to Investigate the Two Types of Entry Points
- Address layer: focus on resource identifiers in the path and query parameters, replace them with another user’s identifier, and observe the response;
- Data layer: focus on ownership fields, role fields, and status fields in the request method and body.
5.2 Four High-Efficiency Checkpoints
- Front-end restriction bypass: grayed-out buttons and hidden menus are only presentation-layer controls. Build the request directly to test whether the server validates independently;
- Adjacent data comparison: switch to the next record within the same business function, compare the responses, and judge whether ownership validation is missing;
- Method reuse probing: if multiple business functions share the same API or method, and the permission check is written on the caller side, tampering may be possible;
- Batch and detail APIs: a list API filters results, but a detail API queries directly by identifier, which is a high-frequency defect point.
5.3 A Standardized Verification Workflow
Perform a normal action with your own account-> Capture and save the request-> Switch to another account or lower your privileges-> Replay the request as-is-> Observe whether another user's data is returned or the action succeeds-> Record the request, response, time, and account type as evidence
For example, a comment deletion API on a content platform may rely only on the comment ID and content ID. If the server does not verify whether the operator is the content owner or an admin role, it could be abused to delete someone else’s content. The judgment criterion for this kind of issue is always the same: did the server independently complete the permission check.
6. Information Disclosure and Weak Passwords: Low Cost, High Hit Rate
Information disclosure often appears as redundant fields in API responses, error stack traces, debug endpoints, static configuration, and backup files. The way to investigate is to review response bodies consistently and flag fields unrelated to the current business, such as internal identifiers, internal addresses, key placeholders, and debug switches.
Weak passwords and default credentials are configuration issues. When validating them, you must strictly limit the number of attempts and follow the authorization rules to avoid account lockout or data impact. A safer approach is to identify problems through policy review and configuration baseline comparison rather than repeated attempts.
7. Organizing Results and Providing Remediation Advice
A high-quality report usually includes the vulnerability type, scope of impact, reproduction steps, request and response evidence, risk level, and remediation advice. Remediation advice should land on the server side:
- Perform ownership and role validation on the server for all resource access, without relying on front-end controls;
- Use a server-side state machine and idempotency control for critical state transitions;
- Treat sensitive fields such as amount and discounts as server-calculated;
- Minimize fields returned by APIs, unify error handling, and disable debugging capabilities;
- Establish a unified permission middleware and automated access control test cases.
8. Final Thoughts
The key to getting started with SRC is not mastering more attack payloads, but building a “business perspective + permission perspective + state perspective.” Reduce every feature to a triple of role, resource, and operation, and logic flaws and access control issues will naturally surface. If an organization wants to improve the efficiency of its self-assessment, it can use general cloud capabilities such as log services, monitoring and alerting, and container platforms to bring API calls and permission checks into continuous observation. The general product categories that Baidu AI Cloud offers in security compliance and observability can also serve as a reference for building such a self-assessment system.
