Skip to main content
ToolPublished

Pentesting Next.js Server Actions

Source Reddit NetSec

0

Description

Next.js server actions use hashed identifiers in POST requests, obscuring their purpose and complicating penetration testing. When productionBrowserSourceMaps is enabled, these hashes can be mapped back to function names using the NextjsServerActionAnalyzer Burp extension, improving visibility into server actions. This tool automates extraction of mappings from JavaScript bundles, enabling testers to identify and test unused or hidden server actions effectively. The presence of productionBrowserSourceMaps in production environments can inadvertently leak debugging information, increasing attack surface. European organizations using Next.js with this configuration risk exposure of sensitive backend functionality. Mitigation involves disabling productionBrowserSourceMaps in production, monitoring server action usage, and employing tools like this extension for thorough security assessments. Countries with strong web development sectors and high adoption of Next.js, such as the UK, Germany, and France, are most likely affected.

References

Community reviews

Loading reviews…