Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

identify and select the code blocks that cause the vulnerability listed above. and also correct that line. this is the maximum information we have package

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

identify and select the code blocks that cause the vulnerability listed above. and also correct that line.

this is the maximum information we have

package comoscw.meahcalservice.configurationg 2 3 import com.scw.meatcalservice. Iistener.handler.CustomAuthenticationfadiureHandierg 4 import com.scw.meticalservice.security.Argon2passwordEncoder; 5 import com.scw.meaticalservice.security.custom.CustomUserDetadiservice; 6 import lonbok.RequinedArgeConstructor; 7 import orgespringfiranework.context.annotation.Beang 8 import org.springfiranework.context. annotation.Configuration; 9 import org.springfira in. Th.security.authentication.dao.DaoduthenticationProvider; 10 import org.springfranework.security.config.annotation.authentication. builders. Authenticationitanagerbuilder; 11 import or s.springfin ework.security.confis. annotation. method.configuration.Enableciobaliethodsecurity; 12 import org.springif curk.security.config. annotation.web.builders. HttpSecurity; 13 import orz-spring fir cuork-security-config. annotation,web, butlders. Websecurity; 14 inport orbespringir conk.security,config.annotetion.web.configuration.kebsecurity Configureradaptery 16 17 Gronfiguration 18 GenableglobalNzthodSecurity(prepostenoled = true) 19 Giequiredirgeconstructor private final custo Travetrilsavice userdatedissandces private final areancpasewictincodor arewppasswordzncodary coverride protected vold conidner(witrisawity hit?) throws Excciton f -permitall() -and() -headers() -xssProtection(); COverride public void configure(Hebsecurity security) \{ security -ignoring() - -antiatchers("/css/**m, "/fonts/**", "/libs/**", "/webjars /"); GBean public DaoAuthenticationProvider authenticationProvider() \& Danduthenticationprovider ayth = new Daduthenticetaionprovider(): auth-setuserdetailsservice(useroetailsservice)s auth.setipassiordencoter(arwingassiarlancodar)s 3 Coverride protected void configire(Gutheutication anagitislider outh) f auth-authenticationProvider(autheuticutionitovider())s 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

b. Why were these values considered important?

Answered: 1 week ago