exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 632 discussion

Actual exam question from CompTIA's CAS-004
Question #: 632
Topic #: 1
[All CAS-004 Questions]

The findings from a recent penetration test report indicate a systematic issue related to cross-site scripting. A security engineer would like to prevent this type of issue for future reports. Which of the following mitigation strategies should the engineer use to best resolve the issue?

  • A. Implement static analysis with blocking capabilities in the CI/CD system.
  • B. Request resources to develop a secure library to address encoding issues.
  • C. Leverage an API management system to filter information.
  • D. Configure a DAST tool for all applications.
  • E. Require all developers to take secure coding training that focuses on OWASP principles.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Bright07
3 weeks, 1 day ago
Selected Answer: A
Source 2. A. Implement static analysis with blocking capabilities in the CI/CD system. Static analysis can automatically scan code for potential XSS vulnerabilities before deployment. Integrating this into the CI/CD pipeline allows for early detection and prevention of vulnerabilities. Blocking capabilities prevent the deployment of code containing identified XSS vulnerabilities. Source 3. Static Application Security Testing (SAST) integrated into the CI/CD pipeline can automatically detect XSS vulnerabilities in the codebase before deployment. Blocking capabilities ensure that vulnerable code cannot proceed to production unless fixed, enforcing security early in development. This is a scalable, automated approach that prevents XSS at the source rather than relying on manual reviews or post-deployment fixes.
upvoted 1 times
...
Bright07
3 weeks, 1 day ago
Selected Answer: A
Source 1. Cross-site scripting (XSS) vulnerabilities typically result from improper input validation and encoding in web applications. To prevent XSS issues systematically, an effective strategy is to integrate static application security testing (SAST) tools with blocking capabilities into the CI/CD pipeline. REASONS: SAST tools scan source code before deployment, identifying potential XSS vulnerabilities at an early stage. When integrated into CI/CD, these tools prevent insecure code from being deployed. Blocking capabilities enforce security policies, ensuring developers fix issues before merging code.
upvoted 1 times
...
2ae4ed9
4 weeks, 1 day ago
Selected Answer: A
I think option A would be more efective in this scenario.
upvoted 2 times
2ae4ed9
4 weeks, 1 day ago
Changing my answer to E, due to 'Future reports'.
upvoted 1 times
...
...
Steel16
1 month, 1 week ago
Selected Answer: E
o This option is the most effective because it addresses the root cause by educating developers on secure coding practices. Training developers on OWASP principles ensures they understand how to prevent XSS vulnerabilities through proper input validation, output encoding, and other security measures.
upvoted 1 times
Steel16
1 month, 1 week ago
o A. Implement static analysis with blocking capabilities in the CI/CD system: Static analysis tools can help identify vulnerabilities in code, but they may not be sufficient to catch all instances of XSS. They also require proper configuration and maintenance to be effective. o B. Request resources to develop a secure library to address encoding issues: While developing a secure library can help address encoding issues, it may not cover all aspects of XSS prevention. It also requires significant resources and time to develop and integrate into existing systems.
upvoted 1 times
...
Steel16
1 month, 1 week ago
o C. Leverage an API management system to filter information: API management can help filter input and output data, but it's not a complete solution for XSS prevention as it doesn't address the vulnerabilities in the application itself. o D. Configure a DAST tool for all applications: DAST tools are valuable for identifying vulnerabilities during testing, but they are not a preventative measure. They only detect existing issues and do not address the root cause of insecure coding practices.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago