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

Improper_Restriction_of_XXE_Ref @ /Controllers/ImportsController.cs #59

Open
msant262 opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@msant262
Copy link

msant262 commented Jan 26, 2024

Checkmarx (SAST): Improper_Restriction_of_XXE_Ref
Security Issue: Read More about Improper_Restriction_of_XXE_Ref
Checkmarx Project: Nova-8/Damm-Vulnerable-CSharp-API
Repository URL: https://github.com/Nova-8/Damm-Vulnerable-CSharp-API
Branch: master
Scan ID: 2f22541b-da6c-459f-9285-99da61e0ed7d


The Post loads and parses XML using Load, at line 29 of /Controllers/ImportsController.cs.

This XML was received earlier from user input, Body, at line 29 of /Controllers/ImportsController.cs. Note that Load is set to automatically load and replace any DTD entity references in the XML, including references to external files.

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

    1. Body: /Controllers/ImportsController.cs[29,47]
    2. Load: /Controllers/ImportsController.cs[29,22]
    Review result in Checkmarx One: Improper_Restriction_of_XXE_Ref

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