a procedure for treating the perforations of a well , in particular by intervention of a cable , in order to plug them or consolidate them comprises the successive steps of : arranging , close to the perforation to be treated , a dehydration powder chamber that produces a large volume of high pressure gas at a high temperature , as well as a composite powder chamber designed to treat the perforation ; igniting the dehydration powder ; and once the combustion of the dehydration powder is completed , igniting the composite powder so the treatment of the perforation can take place . the invention also relates to a device for implementing this procedure .