Section 5D. (a) A person who would otherwise be liable for a release of oil or hazardous material solely pursuant to clause (1) of paragraph (a) of section 5 and who did not cause or contribute to the release, shall not be liable to the commonwealth or to any other person for contribution, response action costs for property damage pursuant to this chapter or for property damage under the common law, except for liability under a contract, if such release of oil or hazardous material has migrated in or on groundwater or surface water from a known source where the following requirements are met:
(1) such oil or hazardous material was released from an upgradient or upstream source or sources and has come to be located at the downgradient or downstream property owned or operated by such person;
(2) such person does not own or operate and did not previously own or operate any portion of the site from or at which the source of the release originated;
(3) such person complies with the notice requirements of this chapter and regulations promulgated thereto; and
(4) such person: (i) provides reasonable access to the portion of the site it owns or operates to employees, agents and contractors of the department for all purposes authorized by this chapter and to other persons for the purpose of conducting response actions pursuant to this chapter and regulations promulgated thereto; (ii) takes reasonable steps (a) to prevent the exposure of people to oil or hazardous material by fencing or otherwise preventing access to the portion of the site under its control, and (b) to prevent an imminent hazard at the downgradient or downstream property owned or operated by such person by taking immediate response actions at the portion of the site owned or operated by such person; (iii) does not unreasonably impede or interfere with the performance of response actions or the restoration of natural resources by any person; and (iv) does not exacerbate the release of oil or hazardous material affecting the downgradient or downstream property owned or operated by such person.
(b) With respect to a release of oil or hazardous material that has migrated in or on groundwater or surface water from an unknown source, a person who can demonstrate by a preponderance of the evidence that it otherwise meets all of the criteria in paragraph (a) shall not be liable to the commonwealth or to any other person for contribution, response action costs or property damage pursuant to this chapter or for property damage under the common law, except for liability arising under a contract.
(c) The department shall promulgate regulations in order to define the terms ''known source'' and ''unknown source''.
(d) Nothing in this section shall relieve any person of any liability for releases or threats of release of oil or hazardous material:
(1) that are exacerbated, caused, or contributed to by the acts or failure to act pursuant to this chapter of such downgradient or downstream owner or operator, or its agent or employee;
(2) that originate on the downgradient or downstream property owned or operated by such person;
(3) that originate on the downgradient or downstream property owned or operated by such person and commingled with the oil or hazardous material migrating from upgradient or upstream property in groundwater or surface water; or
(4) to which there is a new exposure resulting from an act or failure to act pursuant to this chapter of a downgradient or downstream owner or operator or such person's agent or employee.
(e) Nothing in this section shall affect the department's audit authority, as provided by paragraph (o) of section 3A.
(f) If the commonwealth prevails in an action brought pursuant to this chapter for recovery of costs incurred by the department against a party that has asserted liability protection pursuant to this section, the court may impose sanctions in accordance with paragraph (e) of section 5.