Question 330 A service permits a remote client to submit a relative path that is dynamically included as code from another URL. What class of weakness is suggested? Remote file inclusion A harmless static HTML reference An expired certificate automatically A pure DNS TTL issue Explanation Correct Answer A:Including attacker-controlled external content can introduce remote code. Incorrect Answers B:The application executes included code. C:No certificate problem is described. D:The weakness is dynamic file inclusion.
Question 331 A Linux host has a setuid binary whose unsafe environment variable can trigger privileged command execution. What should be prioritized? Remove unsafe privileged execution paths and validate the setuid design Disable all DNS lookups globally Move user home directories to a larger disk Make the setuid file world-writable Explanation Correct Answer A:A setuid process can cross local privilege boundaries. Incorrect Answers B:Name resolution is not the root cause. C:Disk capacity does not fix privilege misuse. D:That would magnify exploitation risk.
Question 332 An application exposes a debug interface publicly and returns stack traces with environment secrets. Which issue is involved? Only an expired client browser cache Security misconfiguration and information disclosure A DNS alias conflict A necessary public transparency feature Explanation Correct Answer B:Production debug settings can leak credentials and internal details. Incorrect Answers A:Cache state does not explain public debug output. C:The evidence is application configuration. D:Debug secrets should not be served to users.
Question 333 An attacker changes a predictable order ID in a URL and modifies a different customer's purchase. What is the closest flaw? An ordinary cache invalidation event Broken object authorization enabling horizontal tampering A TLS downgrade condition Cross-site scripting only Explanation Correct Answer B:Object references require per-record permission checks on writes as well as reads. Incorrect Answers A:One user cannot legitimately modify another's order. C:Transport encryption may remain sound. D:The described effect is unauthorized object modification.
Question 334 A site accepts arbitrary redirect targets from a query parameter after login. What should be mitigated? Unrelated host patch banners Open redirect by restricting allowed post-login destinations Database transaction deadlocks Certificate pinning in mobile apps only Explanation Correct Answer B:Unvalidated redirects can aid phishing and token leakage. Incorrect Answers A:Patch banners do not validate destination URLs. C:Redirects are not SQL locks. D:Pinning does not control server redirects.
Question 335 A service encrypts sensitive data with a deprecated algorithm using an embedded static key. What is the best security improvement? Use supported authenticated encryption with managed key storage and rotation Disable decryption auditing Add additional Base64 encoding Make the static key publicly documented Explanation Correct Answer A:Modern cryptography requires robust algorithms and secret custody. Incorrect Answers B:Audit removal does not strengthen crypto. C:Encoding is not cryptographic protection. D:That exposes confidentiality.
Question 336 A mobile API permits unlimited failed OTP attempts on account recovery. What mitigation helps? Reuse one OTP across all users Rate limit verification attempts and bind codes to short-lived sessions Disable account recovery logs Increase the number of user-facing error details Explanation Correct Answer B:Online guessing is reduced by throttling and bounded validity. Incorrect Answers A:Shared codes are unsafe. C:This hides abuse. D:Extra hints can aid attackers.
Question 337 A JSON API accepts an HTTP method override header from anonymous clients and performs admin-only deletes. What must be corrected? Change only the API documentation title Assume POST is always safe from attackers Enforce authorization on the resolved server-side action regardless of HTTP method Hide DELETE buttons from the browser Explanation Correct Answer C:Method rewrites cannot bypass privilege checks. Incorrect Answers A:Documentation does not enforce operations. B:HTTP verbs do not establish permission. D:Direct requests remain possible.
Question 338 A security review finds that an app allows TLS 1.0 negotiation for all clients. What is the recommended change? Switch web assets to SVG Leave obsolete versions to avoid any change effort Disable obsolete protocol versions and test modern client compatibility Rely exclusively on strong passwords Explanation Correct Answer C:Deprecated TLS protocols can expose weak cryptographic behavior. Incorrect Answers A:Image format does not affect TLS. B:Compatibility should be balanced against known risk. D:Passwords do not remediate transport protocols.
Question 339 A DNS management endpoint grants all authenticated users zone edit permission. What is the most appropriate fix? Use role-based least-privilege authorization for DNS changes Set every record TTL to zero Keep unrestricted edits and rely on monitoring Remove DNSSEC to simplify administration Explanation Correct Answer A:Authenticated identity alone should not grant administrative capability. Incorrect Answers B:TTL does not enforce administrative rights. C:Detection does not replace access control. D:That reduces record authenticity.
Question 340 A customer portal uses client-side validation to prevent negative payment amounts but the API accepts negative values directly. What should change? Lower the request timeout Add more JavaScript validation only Enforce input and business rules on the server Rename the field in the HTML form Explanation Correct Answer C:Client checks can be bypassed by direct API calls. Incorrect Answers A:Timeouts are unrelated to amount validation. B:An attacker can skip the browser. D:Naming does not secure the API.