At a time when the Securities and Exchange Commission is scrambling for resources, a new report by the agency's internal watchdog says the agency has wasted millions of dollars in a "deeply flawed" system for leasing office space.

The U.S. Securities and Exchange Commission seal hangs on the facade of its building in Washington, DC.

The report by Inspector General H. David Kotz—issued last week but not made public by the SEC until Tuesday—focuses on space leased by the SEC last year, most of which, it turns out, the agency did not need.