Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: f3099279f0c2
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 6fe989eaed7d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 6, 2019

  1. nixos/tests/acme: Use exact match in TOS location

    Since the switch to check the nginx config with gixy in
    59fac1a, the ACME test doesn't build
    anymore, because gixy reports the following false-positive (reindented):
    
      >> Problem: [alias_traversal] Path traversal via misconfigured alias.
      Severity: MEDIUM
      Description: Using alias in a prefixed location that doesn't ends with
                   directory separator could lead to path traversal
                   vulnerability.
      Additional info: https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
      Pseudo config:
    
      server {
        server_name letsencrypt.org;
    
        location /documents/2017.11.15-LE-SA-v1.2.pdf {
          alias /nix/store/y4h5ryvnvxkajkmqxyxsk7qpv7bl3vq7-2017.11.15-LE-SA-v1.2.pdf;
        }
      }
    
    The reason this is a false-positive is because the destination is not a
    directory, so something like "/foo.pdf../other.txt" won't work here,
    because the resulting path would be ".../destfile.pdf../other.txt".
    
    Nevertheless it's a good idea to use the exact match operator (=), to
    not only shut up gixy but also gain a bit of performance in lookup (not
    that it would matter in our test).
    
    Signed-off-by: aszlig <aszlig@nix.build>
    aszlig committed Apr 6, 2019
    Copy the full SHA
    6fe989e View commit details
    Browse the repository at this point in the history