is there a way to know witch module is responsible to programmatically alter a view's query?
Interesting question / challenge, not obvious to debug ...
Here is what I would do, in the order specified:

Scan the entire modules directory for a string containing '1 = 0'.

Scan the Drupal database (all tables) for a string containing '1 = 0'.


If none of both scans lead to any results, I'd consider using the X-ray module, to check if that would help me any further. Some details about this module (from its project page):

X-ray module gives a look at the skeletal structure of a site to help developers and site builders see how things work.
X-ray Features:

A technical summary is added to the help above the main administrative sections. For example, blocks, content types, and menus are summarized on Structure; themes on Appearance; etc.
A table of permission titles matched to their permission machine names.
A table of most* hooks which Drupal invokes (and when they are invoked) and that are available to be implemented.
The function and arguments producing each page you visit, displayed on that page.
The form ID of every form you see, displayed on the form.