exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 91 discussion

Actual exam question from CompTIA's PT0-001
Question #: 91
Topic #: 1
[All PT0-001 Questions]

The following command is run on a Linux file system:
chmod 4111 /usr/bin/sudo
Which of the following issues may be exploited now?

  • A. Kernel vulnerabilities
  • B. Sticky bits
  • C. Unquoted service path
  • D. Misconfigured sudo
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
mr_robot
Highly Voted 5 years, 1 month ago
PenTest+ Practice Tests Book - SYBEX D. In this scenario, the command chmod 4111 /usr/bin/sudo will misconfigure sudo. Chmod is a command and system call that is used to change the access permissions of file system objects (files and directories). Chmod 4111 (chmod a+rwx, urw, g-rw, o-rw, ug+s, +t, g-s, -t) sets permissions so that (U)ser / owner can’t read, can’t write, and can execute. (G)roup can’t read, can’t write and can execute. (O)thers can’t read, can’t write, and can execute. sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser.
upvoted 12 times
D1960
5 years ago
I don't always trust the Sybex book. But, now that I think about it, D might might sense. The question asks "Which of the following issues may be exploited now?" Just "Sticky bits" by itself is not an issue to be exploited.
upvoted 3 times
mr_robot
5 years ago
That's the thing. A lot of tricky questions in the book. I wonder on what the Comptia Exam bases their answers from, the book or from common sense?
upvoted 3 times
D1960
4 years, 12 months ago
I think CompTIA just pulls arbitrary stuff from the web. Some of their question have little to do with pentesting. For example: question about strings used sanitize input, i.e. ".., \./. sandbox request" Creating complex strings to validate input is hardly the job of the pentester.
upvoted 4 times
mr_robot
4 years, 11 months ago
Agree. With the new questions which you cannot find anywhere else on the web I think they just create themselves, sometimes very badly worded, and just keep in their internal system. Even tried to find an erratum page from the book (Practice Tests) on the Internet to see if there was any correction from the existing questions but didn't find anything.
upvoted 5 times
...
...
...
...
...
kloug
Most Recent 2 years, 2 months ago
DDDDDDDDDDD
upvoted 1 times
...
miabe
2 years, 9 months ago
Selected Answer: D
looks good to me
upvoted 1 times
...
Cock
3 years, 2 months ago
It was on the exam
upvoted 2 times
...
CybeSecN
3 years, 9 months ago
The correct answer is D according to the CompTIA Pentest+ Pratice Test, Sybex (Chapter 3: Attacks and Exploits). Note: Chmod is a command and system call that is used to change the access permissions of file system objects (files and directories). Chmod 4111 (chmod a+rwx,u-rw,g-rw, o-rw,ug+s,+t,g-s,-t) sets permissions so that (U)ser / owner can’t read, can’t write, and can execute. (G)roup can’t read, can’t write and can execute. (O)thers can’t read, can’t write, and can execute. sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. In this scenario. the command chmod 4111 /usr/bin/sudo will misconfigure sudo.
upvoted 1 times
...
byrne
4 years, 4 months ago
On an Ubuntu box: -rwsr-xr-x 1 root root 166056 Jul 15 01:17 /usr/bin/sudo chmod 4111 /usr/bin/sudo ---s--x--x 1 root root 166056 Jul 15 01:17 /usr/bin/sudo Sudo already has the Sticky bit, so just will remove some write and read permissions. Anyways, you'll find on webs people having ---s--x--x for sudo on their OS. I tried and it seems everything still normal. There's no need to write or read the sudo file, just execute it. perhaps just if you are updating sudo version. The funny thing it's that I found a web where a pentester show 'chmod 41111 /usr/bin/sudo' just to explain what a Sticky bit is. Anything to so with a vulnerability on sudo. The vulnerabilities come with sticky bits on executables that don't require it, so an attacker can exploit it. https://www.pentestpartners.com/security-blog/exploiting-suid-executables/ In my opinion the Comptia person who wrote this was 'really inspired' and did not read/understand the pentesters' article at all.
upvoted 4 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