Skip to content

Unvalidated/Unsanitized user input in src/store/reducers/data.js #36

@decause-gov

Description

@decause-gov

Issue Report

Unvalidated/Unsanitized user input in src/store/reducers/data.js

Expected behavior

User input should be validated and sanitized to prevent potential security issues.

Actual behavior

src/store/reducers/data.js

  1. Data fetching functions, like in /store/reducers/data.js, use template literals for
    URLs. If any of the values (e.g., organizationId) come directly from user input, it can
    lead to security issues. Even though the risk in your code isn't evident, always validate
    and sanitize user input before use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions