N.Y. Real Property Actions & Proceedings Law § 796-L
* § 796-l. Waiver void. Any provision of a lease or other agreement whereby any provision of this article for the benefit of a tenant, resident or occupant of a dwelling is waived, shall be deemed against public policy and shall be void. * NB Effective June 13, 2023