PT-2024-33679 · Oak · Oak
Nekzor
·
Published
2024-11-01
·
Updated
2024-11-02
·
CVE-2024-49770
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions:
oak versions prior to 17.1.3
Description:
The issue allows an attacker to bypass the default restriction on transferring hidden files using the
Context.send API by encoding / as its URL encoded form %2F. This can potentially lead to reading sensitive user data or gaining access to server secrets. The isHidden function is flawed, as it only checks if the first subpath is hidden, allowing secrets to be read from subdir/.env. The vulnerability can be exploited by using API endpoints such as /poc%2f../.env or /poc%2f../.git/config to access sensitive files.Recommendations:
For versions prior to 17.1.3, update to version 17.1.3 to fix the issue. As a temporary workaround, consider restricting access to the
Context.send API or disabling the isHidden function until a patch is available. Avoid using the decodeComponent function to decode URLs, as it may allow an attacker to bypass the restriction on transferring hidden files.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Oak