OPINION OF THE COURT
Yesawich, Jr., J.In December 1982, plaintiff obtained a judgment of foreclosure and sale against defendants Avalon Orchards, Inc. and Kent L. Aldershof (hereinafter defendants) in the amount of $1,006,926.33. The public sale, conducted January 6, 1983, at which plaintiff bid in the mortgaged property for $650,000— the then value of the property as claimed by plaintiff’s appraiser — was subsequently set aside because of a procedural defect and a new sale was ordered (103 AD2d 948); at the second sale, held October 22, 1984, plaintiff was again the successful bidder and the amount bid was the same. Plaintiff then moved for an order confirming the sale and leave to enter a deficiency judgment in the amount of $452,417.26. To demonstrate that the mortgaged property had sold for a fair price, as RPAPL 1371 (2) requires, plaintiff made available to Special Term an updated appraisal report which placed the fair market value of the property as of the date of the second *299sale at $335,000. That figure was not challenged by defendants, who confirm that the property had "substantially diminished” in value from its worth at the time of the first sale —as attested to by Aldershof — of $1,650,000. Instead, defendants attribute this decrease in value to plaintiffs mishandling of the property and on that ground, inter alia, seek to bar entry of any deficiency judgment. Special Term granted plaintiffs application in all respects and defendants appeal.
Two of the several arguments advanced by defendants merit discussion. Insofar as defendants question the reasonableness of the counsel fees subsumed in the deficiency judgment, their grievance is untimely, for these fees were awarded in the original judgment of foreclosure and are final since they affect the amount of the debt (see, 2A Warren’s Weed, New York Real Property, Foreclosure of Mortgage, § 14.04 [4th ed]; cf. Ogdensburg Sav. & Loan Assn. v Moore, 100 AD2d 679, 679-680, appeal dismissed 62 NY2d 942). Moreover, an appeal from that judgment was withdrawn. And the kindred claim that further legal fees cannot be charged to defendants because of the need to conduct the second sale is a spurious contention, for it appears from the record that no additional legal fees were levied.
More effective is the assertion that defendants are entitled to offset against any deficiency the substantial waste the mortgaged premises allegedly underwent during the period plaintiff temporarily possessed and owned the property pursuant to the first foreclosure sale. Although ordinarily an application for a deficiency judgment focuses upon the fairness of the auction sale price, matters which could not have been put forth and litigated in the foreclosure action proper can nevertheless be taken into consideration in the deficiency proceeding (Gray v Bankers Trust Co., 82 AD2d 168, 171, lv denied 58 NY2d 604; see, 2A Warren’s Weed, New York Real Property, Foreclosure of Mortgage, § 17.08 [4th ed]). Defendants’ argument falls into the latter category. Beyond that, since mortgage foreclosures are circumscribed by equity, elementary fairness dictates examination of defendants’ position in this regard for, as Monaghan v May (242 App Div 64, 67) makes plain: "No rights vest, perforce the judgment of foreclosure, in plaintiff for a deficiency judgment in any amount until plaintiff satisfies a court of equity that it would be equitable and just, as a consequence of what has occurred on the sale, to authorize the entry of a deficiency judgment”.
Where, as here, there has been a flawed foreclosure proceed*300ing, equity’s principal goal has been to restore the parties to the positions they occupied before the nullified sale (see generally, 2 Wiltsie, Real Property Mortgage Foreclosure § 771, at 1251 [5th ed]; 2A Warren’s Weed, New York Real Property, Foreclosure of Mortgage, § 15.29 [4th ed]; cf. Willets v Van Alst, 26 How Prac 325, 344). To achieve this objective in analogous circumstances, equity has called upon occupants of the property to account for the rents and profits, or the value of their use and occupation, for the period subsequent to a voided or voidable foreclosure of a mortgage (see, Hubbell v Moulson, 53 NY 225; Osborne, Handbook on the Law of Mortgages §§ 164-176, at 285-304 [2d ed]).
Despite the obvious complexity of the parties’ equities, applying similarly fashioned relief to their unique situation does not seem at all inappropriate for, with the setting aside of the first sale, plaintiffs status was redefined from that of an absolute owner in possession to that of a mortgagee in possession.* As such, plaintiff was bound, while it controlled and possessed the property, to use reasonable means to preserve the property from loss and injury and to conserve its value, except, of course, for depreciation caused by ordinary wear and tear occasioned by time (see, Osborne, Handbook on the Law of Mortgages § 168, at 291 [2d ed]). Just as an action for waste lies against a mortgagee in possession whose mismanagement damages the value of the property (3 Kerr, Treatise on the Law of Real Property § 2172, at 2185-2186 [NY 1895]; see, e.g., Van Pelt v McGraw, 4 NY 110), so also does such an action lie against a mortgagee who purchases mortgaged premises at a foreclosure sale that is later voided (see, e.g., Fort v Roush, 104 US 142).
However, whether the deficiency judgment that has been entered herein is indeed justified cannot be determined without consideration being given to defendants’ allegations that plaintiff permitted substantial waste to be visited upon the property from and after consummation of the first foreclosure sale. These allegations bear directly on the satisfaction, in *301whole or in part, of the mortgage debt and ought — not only from the standpoint of simple justice, but judicial economy as well — to be resolved herein (see, Hubbell v Moulson, 53 NY 225, 228-229, supra; cf. Osborne, Handbook on the Law of Mortgages § 165, at 287 [2d ed]).
This waste charge does not appear to be specious. Rather, it has some substance in the record in that it is averred that the mortgaged premises depreciated over the two-year period between the two foreclosure sales — from $1,650,000 in November 1982 to $335,000 in October 1984 — and that for a substantial portion of that period the premises were under plaintiffs possession and control. Defendants attribute this diminution in value to among other things "the failure to maintain the property by plaintiff’. That assertion, which is not controverted, at the very least raises a factual question respecting the damages defendants attribute to waste (see, Marine Midland Bank v Harrigan Enters., 118 AD2d 1035), and they should be afforded an opportunity to prove them. Remittal is therefore required for the purpose of conducting a hearing on the issue of these damages, predicated on waste chargeable to plaintiff during its possession and control of the mortgage premises as a result of the first sale — measured from the fair and reasonable market value on that date — and to determine the amount, if any, to which plaintiffs right to a deficiency judgment should be offset thereby (see, Broward Natl. Bank v Starzec, 30 AD2d 603, 604).
The dissenters point to defendants’ failure to obtain a stay of the first sale pending appeal as the ground for holding the title of the purchaser there intact. In our view, extinguishment of the purchaser’s rights was implicit in this court’s prior determination to order a new sale; otherwise, on remittal, there would have been nothing to sell. As for the lack of a stay, we note that a similar failure posed no impediment to vacatur of an improperly noticed judicial sale and remittal for a new sale in Shaw v Russell (95 AD2d 977, affd 60 NY2d 922).