N.Y. Business Corporation Law § 1313
An action or special proceeding may be maintained by a foreign corporation, in like manner and subject to the same limitations, as an action or special proceeding brought by a domestic corporation, except as otherwise prescribed by statute.