CCSP Exam QuestionsBrowse all questions from this exam

CCSP Exam - Question 46


Which of the following threat types involves the sending of untrusted data to a user's browser to be executed with their own credentials and access?

Show Answer
Correct Answer: B

Cross-site scripting (XSS) is a type of attack where an attacker sends untrusted data to a user's browser, causing it to execute the malicious data with the user's own credentials and permissions. This usually happens due to improper validation or escaping of user input on web pages. The malicious script runs in the context of the user's session and can allow the attacker to steal sensitive information, hijack user sessions, or redirect the user to malicious websites. In contrast, Cross-site request forgery (CSRF) involves tricking a user into making unwanted requests, exploiting their authenticated session with a trusted site, but it does not involve sending and executing untrusted data in the user's browser.

Discussion

17 comments
Sign in to comment
FpaulOption: C
Jun 8, 2021

This is 100% cross site request forgery.... the basic way it works is someone sends you a link to execute commands on a website you are already authenticated with (hence it runs with users credentials being the key)

xroxro
Aug 17, 2022

see my comment below I thing that "sending of untrusted data to a user's browser" correspond more to a stored XSS than a CSRF In CSRF you do not directly send forged data to the browser

Zeezee2Option: B
Nov 20, 2021

Certainly B. XSS means user loads a site he/she trusts which has an injected script of attacker and that user's browser executes that attacker's script with the authentication of that user because he/she may be logged in to the site at that time. With CSRF, an attacker tricks a user's brower into issuing requests which are first sent by the attacker to the user, and the website executes the attacker's requests. Here, the website trusts the user not the other way around. There is no script from the attacker that is stored on the website in this case. Both attacks relate to lack of authenticating/validating user input.

nachoqueenOption: B
Nov 23, 2022

B. XSS CSRF attacks require the authenticated user to be in an active session, while the XSS attack does not. In an XSS attack, payloads can be stored and delivered whenever the user logs in.

serget12Option: B
Oct 8, 2022

Answer is B, XSS Cross-Site Request Forgery (CSRF): A CSRF attack forces a logged-on victim’s browser to send a forged HTTP request, including the victim’s session cookie and any other automatically included authentication information, to a vulnerable web application.

quaggaOption: B
Oct 14, 2022

B: XSS

earlyDevOption: B
Jun 29, 2023

B.Cross-Site Request Forgery (CSRF) is a type of attack that tricks the victim into submitting a malicious request. It infiltrates a victim's browser and then forces it to send an HTTP request to a target site to which the victim is already authenticated. The crucial difference is that with CSRF, the malicious request is sent to the site with the victim's credentials, meaning it's the site that's fooled into thinking the request is legitimate. With Cross-Site Scripting (XSS), malicious scripts are executed in the user's browser, not the server.

ikamalbhattOption: C
May 2, 2023

C definitely

Joe09Option: B
May 31, 2023

B definitaley

SamDavidOption: C
Jul 31, 2023

CSRF is the coorect answer

nelombgOption: C
Jul 31, 2023

Cross site forgery oils the answer

Krishna2637Option: C
Aug 26, 2023

untrusted data is the key, Forgery is the one I pick.

bu3oofOption: C
Sep 6, 2023

Answer is C (CSRF) . Just have a look on any digram of CSRF, you will notice the hacker will send a users with phishing link where the user will enter his credential.

Squidly888Option: B
Sep 16, 2023

good discussion here. My first thought was XSS but you may have convinced me that it should be CSRF. I hope I don't have that question on my test tomorrow.

nikhilborleOption: C
Oct 30, 2023

The answer is C, CSRF. https://owasp.org/www-community/attacks/csrf

cloudenthusiastOption: C
Mar 5, 2024

key word is trig the user

TheFivePips
Jun 20, 2024

thats never used in the question....

8a21350Option: C
Mar 18, 2024

CSRF is an attack that tricks the victim into submitting a malicious request. It inherits the identity and privileges of the victim to perform an undesired function on the victim’s behalf (though note that this is not true of login CSRF, a special form of the attack described below). For most sites, browser requests automatically include any credentials associated with the site, such as the user’s session cookie, IP address, Windows domain credentials, and so forth. Therefore, if the user is currently authenticated to the site, the site will have no way to distinguish between the forged request sent by the victim and a legitimate request sent by the victim. Correct Answer is C

TheFivePipsOption: B
Jun 20, 2024

B. Cross-site scripting (XSS): XSS vulnerabilities occur when an application includes untrusted data on a web page without proper validation or escaping, allowing attackers to execute malicious scripts in the user's browser. These scripts run in the context of the user's session, potentially using their credentials and access. C. Cross-site request forgery (CSRF): CSRF attacks involve tricking a user into making unwanted actions on a web application where they are authenticated. It doesn't involve injecting and executing untrusted scripts in the user's browser.