Skip to content

RDKB-67212 : Fixing Vulnerability issues for onewifi - #1489

Open
Kondamma12345 wants to merge 1 commit into
rdkcentral:developfrom
Kondamma12345:critical
Open

Kondamma12345 wants to merge 1 commit into
rdkcentral:developfrom
Kondamma12345:critical

Conversation

@Kondamma12345

Copy link
Copy Markdown
Contributor

Harden WiFi API JSON file reads by validating file type and size before memory allocation and read.

@Kondamma12345
Kondamma12345 requested a review from a team as a code owner October 5, 2026 12:51
Copilot AI balanced review requested due to automatic review settings October 5, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The wifi_createVAP short-read path leaks an open file descriptor.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Hardens WiFi API JSON loading by validating file type, enforcing a size limit, and detecting incomplete reads.

Changes:

  • Rejects non-regular, empty, or oversized JSON files.
  • Uses zero-initialized bounded allocations.
  • Validates complete file reads.
File Description
source/​core/​wifi_ctrl_wifiapi_handlers.c Adds safer JSON file validation and loading.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/core/wifi_ctrl_wifiapi_handlers.c Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Blocking file opens still allow FIFO paths to stall the WiFi controller indefinitely.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Comment thread source/core/wifi_ctrl_wifiapi_handlers.c
@mateuszCieslak-GL mateuszCieslak-GL added static-analysis Static-analysis findings (Coverity etc.). question Further information is requested labels Oct 13, 2026
Harden WiFi API JSON file reads by validating file type and size before memory allocation and read.
Copilot AI balanced review requested due to automatic review settings October 23, 2026 05:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human validation is still needed for the security-sensitive file-opening behavior and compatibility of the new size limit.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested static-analysis Static-analysis findings (Coverity etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants