Beginning ethical hackers often learn the same difficult lesson: a vulnerability is not merely an alarming scanner result. It is a specific failure of trust boundaries, data handling, configuration, authentication, or authorization that must be demonstrated in an expressly authorized scope. The seventeen weaknesses below are useful study categories, not a promise that every learner will find all of them in their first week. Some require controlled application code, specialized services, or considerable experience to assess responsibly.
For every category, ask three questions before testing: What is the intended trust boundary? What observable evidence would show a violation? What control should the system enforce instead? Work only in an owned laboratory or an engagement with written permission. Keep evidence minimal, avoid extracting sensitive information, and report conditions and potential consequences without attempting unnecessary escalation.
SQL injection and cross-site scripting: control data at the correct boundary
1. SQL injection. An application becomes vulnerable when untrusted input is concatenated into SQL syntax rather than supplied as a bound value. The important distinction is between query structure, which the application controls, and parameters, which the user supplies. A safe review examines how each query is built, whether authorization is independently enforced, and whether database permissions limit the impact of a programming error. Parameterized queries are the primary defense. Allow-lists are needed when an application intentionally lets users select structural identifiers, while filtering alone is not a reliable substitute for binding.
2. Cross-site scripting (XSS). XSS arises when application-controlled text or other untrusted data reaches an executable browser context without suitable context-aware encoding or safe DOM APIs. The risk depends on where the data lands: HTML content, attributes, URLs, scripts, and dynamic DOM assignments each demand different handling. A demonstration in a test application should avoid capturing real session tokens. Cookies marked HttpOnly cannot be read directly by ordinary JavaScript, though a script running in the application origin may still perform actions the user’s browser is authorized to perform. Output encoding, safe frameworks, and appropriately designed content-security policies reduce exposure.
Broken authorization and insecure direct object references
3. Broken access control. Successful login does not prove that a user is permitted to perform every action exposed by an application. An authorization rule must be checked at the server for each protected operation, including administrative functions and API endpoints. In a laboratory, compare how two appropriately created test roles are handled; avoid inferring security from the presence or absence of a navigation button. Test both read and change operations because a system may protect one and expose the other.
4. Insecure direct object references (IDOR). This is a common manifestation of broken object-level authorization. A reference such as a document ID is not itself a vulnerability; the flaw occurs when an application uses that reference without confirming the requesting identity can access the referenced object. The secure pattern is to enforce ownership or policy at the data-access boundary and return an appropriately restricted response. Rate limiting does not cure missing authorization, and unpredictable object identifiers are only defense in depth.
Password storage and session state
5. Weak password storage. Passwords should not be stored as plaintext or with fast general-purpose hashes. Modern password verifiers use a suitably configured password-hashing algorithm with a unique salt and appropriate work factors. Hashing is not encryption: a weak password hash is not normally “reversed,” but attackers can try guesses offline against leaked verifier data. The operational risk becomes larger when users reuse passwords, enabling credential stuffing at unrelated services. Breach response therefore includes verifier upgrades, account protections, and clear user notification rather than merely changing a display string.
6. Weak session management. A session identifier must be unpredictable, protected in transit, and managed through suitable expiry and revocation policies. Rotation after sensitive authentication state changes can limit session fixation; secure cookie attributes reduce exposure. Verify that logout invalidates the server-side session where applicable instead of assuming clearing browser storage revokes an access token everywhere. Testing should use only synthetic accounts and should distinguish a session still valid because of intentional policy from a genuine unauthorized reuse condition.
Known-vulnerable software and unsafe configuration
7. Outdated components. A visible software version is only one clue. A vulnerability may depend on a particular configuration, enabled feature, package patch backport, or exposed interface. Findings should be tied to an applicable advisory, affected version and actual reachability before they are reported as exploitable. Asset inventory, vendor-supported updates, and a controlled patch process are the durable defenses. An automated scanner’s severity value is not evidence that an attack succeeded.
8. Security misconfiguration. Examples include default credentials, excessive cloud-storage access, publicly exposed administration interfaces, and detailed production debug pages. The common cause is an incorrect deployment boundary rather than necessarily flawed application code. Review documented configuration baselines and test the effective settings; do not assume a default is unsafe in every environment or that a secured development setting should be copied to production. Guardrails, configuration review, and continuous drift detection help prevent recurrence.
Server-side requests and XML parsing
9. Server-side request forgery (SSRF). Applications that fetch URLs or network resources on behalf of a user can be induced to contact destinations the user could not reach directly. Risk depends on URL validation, redirects, DNS resolution, network egress rules, and local metadata protections. Modern cloud metadata services may require request tokens or other protections, so a claim that SSRF automatically reveals cloud credentials is inaccurate. Prefer controlled allow-lists for needed destinations, restricted egress, and safe handling of redirect chains.
10. XML external entity injection (XXE). Certain parser configurations resolve external references or fetch external resources from XML input. The safe approach is to disable dangerous features when unnecessary, use supported secure parser settings, and keep parser libraries current. Defaults differ by language, library, and release; testing must verify the actual parser configuration rather than asserting that every XML library is vulnerable. A laboratory assessment can use benign local data to demonstrate inappropriate entity handling without attempting access to confidential production files.
Cryptography, command execution, and transport
11. Cryptographic failures. Encryption can fail through weak algorithm choices, incorrect nonce or initialization-vector use, missing authentication of ciphertext, or unsafe certificate validation. A useful review examines the application protocol and key lifecycle rather than treating the mere presence of “encryption enabled” as enough. Use well-maintained libraries, authenticated encryption where appropriate, and explicit certificate-verification policy instead of inventing a custom cryptographic construction.
12. Operating-system command injection. Passing user-controlled strings into a shell command can let data alter the command’s structure. Avoid a shell when a structured API can accomplish the same task. If a subprocess is necessary, supply fixed commands and separate arguments, constrain allowed operations, and give the process minimal privileges. Sanitizing a single character is not a complete defense. This category differs from SQL injection because the execution boundary is an operating-system interpreter; injection vulnerabilities share the broader principle that data must not become program syntax.
13. Unprotected sensitive transport. Credentials, tokens, and personal records should not travel over unauthenticated plaintext channels. Test the complete path, including redirects, reverse proxies, service-to-service links, and third-party integrations. TLS protects information in transit when configured and validated correctly, but it does not prevent compromise at an endpoint. A packet capture showing encryption does not by itself prove that certificate validation, access control, or data handling is safe.
Redirects, serialization, and abuse controls
14. Open redirects. A link that begins at a trusted domain can redirect users to an untrusted destination when the application accepts arbitrary redirect targets. Use a controlled set of permitted destinations or local route identifiers. Redirect validation should account for URL parsing edge cases, encoding, and scheme restrictions. The primary threat is often phishing or navigation abuse; an open redirect is not automatically a complete account compromise.
15. Unsafe deserialization. Some serialization formats and application runtimes can instantiate objects or trigger behaviors when processing untrusted data. Exposure depends on the specific format, library, and application design. Prefer data-only formats with strict schema validation where possible, reject unexpected types, and avoid deserializing attacker-controlled objects through libraries with unsafe execution semantics. An assessment should identify an actual dangerous processing path, not equate every use of JSON or object serialization with remote code execution.
16. Missing request and authentication throttling. Without appropriate abuse controls, attackers may guess passwords, enumerate accounts, or exhaust resource-intensive endpoints. Controls can include rate limits, adaptive challenges, identity-aware monitoring, and multifactor authentication where relevant. Naive account lockouts can themselves be abused to deny service to legitimate users. The correct design balances resistance to brute force with recovery and availability rather than assuming a fixed threshold makes attacks impossible.
Error disclosure and responsible reporting
17. Excessive error disclosure. Production stack traces, filesystem paths, database details, and infrastructure identifiers can provide information to an attacker. However, not every version string or verbose error is automatically a critical vulnerability. Evaluate whether the disclosure materially increases exploitation risk and whether the data was intended to be public. Separate user-facing error details from protected server logs, and ensure diagnostic traces do not themselves expose credentials or personal data.
These categories frequently overlap. IDOR is one form of access-control failure; an exposed configuration can increase the impact of SSRF; a weak session design can worsen XSS consequences. An ethical assessment should identify the root control failure, avoid counting the same issue multiple times for presentation effect, and show how a proposed fix changes the actual threat path. Evidence should include authorized scope, affected component, observed behavior, expected behavior, impact assumptions, and retest criteria.
For candidates following the current Certified Ethical Hacker syllabus, 312-50v13 includes vulnerability assessment within a wider examination scope; this list is not an official CEH objectives checklist. As experience grows, ethical hacking becomes less about collecting dramatic screenshots and more about producing findings that an engineering team can reproduce and repair. A beginner’s strongest habit is to separate observation from inference. A scanner alert deserves investigation; an isolated error message is not proof of full compromise; and a fixed configuration should be verified without disturbing real users. This discipline makes security research both more useful and safer.