Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF @ /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java #24

Open
oscardatastream opened this issue Mar 14, 2023 · 0 comments

Comments

@oscardatastream
Copy link
Owner

oscardatastream commented Mar 14, 2023

Checkmarx (SAST): CSRF
Security Issue: Read More about CSRF
Checkmarx Project: oscardatastream/slackDatastream
Repository URL: https://github.com/oscardatastream/slackDatastream
Branch: master
Scan ID: c523472e-01c3-4305-b7dd-e80238456bde


Method elimniar at line 72 of /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java gets a parameter from a user request from ""Documento"". This parameter value flows through the code and is eventually used to access application state altering functionality. This may enable Cross-Site Request Forgery (CSRF).

Result #1:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
Attack Vector:

    1. ""Documento"": /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[72,43]
    2. getParameter: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[72,42]
    3. Documento: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[72,10]
    4. Documento: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[74,32]
    5. update: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[74,15]
    Review result in Checkmarx One: CSRF

Result #2:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
Attack Vector:

    1. ""TipoDoc"": /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[71,41]
    2. getParameter: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[71,40]
    3. TipoDoc: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[71,10]
    4. TipoDoc: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[74,23]
    5. update: /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java[74,15]
    Review result in Checkmarx One: CSRF

@oscardatastream oscardatastream changed the title CSRF @ AlumnoControlador.java CSRF @ /07_SpringMVC/src/main/java/com/curso/java/controladores/AlumnoControlador.java Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant