CompTIA CAS-002 Exam Practice Questions (P. 2)
- Full Access (239 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
After being notified of an issue with the online shopping cart, where customers are able to arbitrarily change the price of listed items, a programmer analyzes the following piece of code used by a web based shopping cart.
SELECT ITEM FROM CART WHERE ITEM=ADDSLASHES($USERINPUT);
The programmer found that every time a user adds an item to the cart, a temporary file is created on the web server /tmp directory. The temporary file has a name which is generated by concatenating the content of the $USERINPUT variable and a timestamp in the form of MM-DD-YYYY, (e.g. smartphone-12-25-2013.tmp) containing the price of the item being purchased. Which of the following is MOST likely being exploited to manipulate the price of a shopping carts items?
SELECT ITEM FROM CART WHERE ITEM=ADDSLASHES($USERINPUT);
The programmer found that every time a user adds an item to the cart, a temporary file is created on the web server /tmp directory. The temporary file has a name which is generated by concatenating the content of the $USERINPUT variable and a timestamp in the form of MM-DD-YYYY, (e.g. smartphone-12-25-2013.tmp) containing the price of the item being purchased. Which of the following is MOST likely being exploited to manipulate the price of a shopping carts items?
send
light_mode
delete
Question #7
The administrator is troubleshooting availability issues on an FCoE-based storage array that uses deduplication. The single controller in the storage array has failed, so the administrator wants to move the drives to a storage array from a different manufacturer in order to access the data. Which of the following issues may potentially occur?
- AThe data may not be in a usable format.
- BThe new storage array is not FCoE based.
- CThe data may need a file system check.
- DThe new storage array also only has a single controller.
Correct Answer:
A
A
send
light_mode
delete
Question #8
Joe, a hacker, has discovered he can specifically craft a webpage that when viewed in a browser crashes the browser and then allows him to gain remote code execution in the context of the victims privilege level. The browser crashes due to an exception error when a heap memory that is unused is accessed. Which of the following BEST describes the application issue?
- AInteger overflow
- BClick-jacking
- CRace condition
- DSQL injection
- EUse after free
- FInput validation
Correct Answer:
E
E
send
light_mode
delete
Question #9
A developer is determining the best way to improve security within the code being developed. The developer is focusing on input fields where customers enter their credit card details. Which of the following techniques, if implemented in the code, would be the MOST effective in protecting the fields from malformed input?
- AClient side input validation
- BStored procedure
- CEncrypting credit card details
- DRegular expression matching
Correct Answer:
D
D
send
light_mode
delete
Question #10
A security administrator was doing a packet capture and noticed a system communicating with an unauthorized address within the 2001::/32 prefix. The network administrator confirms there is no IPv6 routing into or out of the network. Which of the following is the BEST course of action?
- AInvestigate the network traffic and block UDP port 3544 at the firewallMost Voted
- BRemove the system from the network and disable IPv6 at the router
- CLocate and remove the unauthorized 6to4 relay from the network
- DDisable the switch port and block the 2001::/32 traffic at the firewall
Correct Answer:
A
A
send
light_mode
delete
All Pages