Critical Access Control for Administrative Functions
The LayerZero V2 interfaces define numerous functions that can alter the behavior or economic parameters of the LayerZero endpoint (e.g., `setLzToken`, `setDelegate`, `registerLibrary`, `setDefaultSendLibrary`, `setDefaultReceiveLibrary`, `setConfig`). Without proper access control implemented in the concrete contract, these functions could be exploited by unauthorized entities, leading to misconfiguration, denial of service, or theft of funds. The interfaces themselves do not enforce any access control.