CSP-Report

Discussion in 'privacy general' started by Sampei Nihira, Mar 17, 2025.

  1. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,800
    Location:
    Italy
    This beginning of the week I did an interesting test.

    CSP report should be blocked when requests lead to a third party website.

    If a report is sent to an address on a currently open domain, it should not be blocked.
    This can be verified with this test:


    https://apps.armin.dev/ping-spotter/#

    But how can you test whether CSP report with third-party requests is blocked?
    Using this test:


    https://canhas.report/csp-report-uri

    You can see in the image below the behavior of Edge,at this last test, without extensions:

    https://ibb.co/pBWYhxvf

    The behavior should be identical with:

    Edge + uBlock Origin (CSP Report disabled):

    https://ibb.co/yFWVsByb

    Edge + AdGuard Adblocker v.5.x:

    https://ibb.co/rGwgCdw1


    Firefox without extensions has a different test behavior than Edge.
    JS tag attack is not blocked:

    https://ibb.co/Qx3Pvg9


    It would be possible (in an easier way) to enable the CSP-Report block in uBlock Origin.
    But doing so would also block the (legitimate) CSP-Report test Ping Spotter.

    A compromise therefore needs to be found.

    P.S.

    I chose not to enable the CSP-Report block in uBlock Origin.
    And let Hard Mode block *.has.report/report by default.

    Beware that * = changes each time the test is accessed.

    https://ibb.co/pvvjLngZ
     
    Last edited: Mar 17, 2025
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.