Skip to content

fix: fix security issue in snippets精简版pipe上行 - 缓存发送.js - #3

Open
anupamme wants to merge 1 commit into
a97083435:mainfrom
anupamme:fix-repo-tang-v-003-dataoffset-bounds-check
Open

anupamme wants to merge 1 commit into
a97083435:mainfrom
anupamme:fix-repo-tang-v-003-dataoffset-bounds-check

Conversation

@anupamme

@anupamme anupamme commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Fix high severity security issue in proxy/snippets精简版pipe上行 - 缓存发送.js.

Vulnerability

Field Value
ID V-003
Severity HIGH
Scanner multi_agent_ai
Rule V-003
File proxy/snippets精简版pipe上行 - 缓存发送.js:276
Assessment Likely exploitable

Description: Multiple proxy protocol handlers extract payload data using chunk.subarray() with offset values parsed from untrusted network input. No validation ensures dataOffset is within chunk bounds, allowing attackers to manipulate protocol packets and cause out-of-bounds access, protocol confusion, or unexpected behavior in the JavaScript runtime.

Evidence

Exploitation scenario: Attacker crafts malformed VLESS/Trojan/Shadowsocks protocol packets with manipulated dataOffset values exceeding chunk length.

Scanner confirmation: multi_agent_ai rule V-003 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Changes

  • proxy/snippets精简版pipe上行 - 缓存发送.js

Behavior Preservation

The change is scoped to 1 file on the vulnerable path.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant