Repository navigation
Fix v0.9.26 hiroba w2026 64 hiroba - #1949
kanon-yoneji merged 2 commits into
Conversation
fix: update nginx configuration for SSL and gzip settings
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates Nginx TLS listener syntax and adjusts gzip behavior for the upstream proxy’s HTTP/1.0 forwarding, while narrowing the MIME types eligible for compression. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
b9bc65c
into
RCOSDP:v0.9.26_hiroba_develop
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="nginx/weko.conf" line_range="344" />
<code_context>
gzip on;
gzip_disable "msie6";
- gzip_http_version 1.1;
+ gzip_http_version 1.0; # 前段のプロキシは既定で HTTP/1.0 で転送してくる
gzip_comp_level 5; # or anything between 4-6
gzip_min_length 100;
</code_context>
<issue_to_address>
**HTTP/1.0 clients gain compression oracle**
When an attacker can induce an HTTP/1.0 proxied request whose response contains both a secret and attacker-controlled reflected data, nginx compresses the response, making its TLS ciphertext length vary with guesses about the secret; an attacker can use those lengths as a BREACH-style oracle to recover it.
Exclude sensitive responses from compression or ensure secret-bearing responses do not reflect attacker-controlled data.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: nginx/weko.conf:344
| gzip on; | ||
| gzip_disable "msie6"; | ||
| gzip_http_version 1.1; | ||
| gzip_http_version 1.0; # 前段のプロキシは既定で HTTP/1.0 で転送してくる |
There was a problem hiding this comment.
🟡 Medium · HTTP/1.0 clients gain compression oracle
When an attacker can induce an HTTP/1.0 proxied request whose response contains both a secret and attacker-controlled reflected data, nginx compresses the response, making its TLS ciphertext length vary with guesses about the secret; an attacker can use those lengths as a BREACH-style oracle to recover it.
Exclude sensitive responses from compression or ensure secret-bearing responses do not reflect attacker-controlled data.
Prompt for AI agents
In `nginx/weko.conf` at line 344:
**HTTP/1.0 clients gain compression oracle**
When an attacker can induce an HTTP/1.0 proxied request whose response contains both a secret and attacker-controlled reflected data, nginx compresses the response, making its TLS ciphertext length vary with guesses about the secret; an attacker can use those lengths as a BREACH-style oracle to recover it.
Exclude sensitive responses from compression or ensure secret-bearing responses do not reflect attacker-controlled data.
概要 (Summary)
Summary by Sourcery
Update Nginx configuration to improve HTTPS handling and compatibility with upstream HTTP/1.0 proxies.
Bug Fixes:
Deployment: