NGINX 配置分析工具
 
 
Go to file
Andrew Krasichkov 7255ea610f Merge branch 'kr2142-master' 2017-05-10 20:48:02 +03:00
docs Added eng documentation. 2017-05-10 18:44:01 +03:00
gixy Version up to 0.1.2 2017-05-02 12:08:16 +03:00
rpm Version up to 0.1.2 2017-05-02 12:08:16 +03:00
tests Added tests for comment parsing 2017-05-02 12:05:32 +03:00
.gitignore Added RPM specs 2017-04-29 13:18:47 +04:00
.travis.yml Use new requirements 2017-04-28 18:00:19 +03:00
AUTHORS Initial commit 2017-03-31 01:12:44 +03:00
CONTRIBUTING.md Replace CONTRIBUTING.md 2017-04-18 16:17:02 +03:00
LICENSE Initial commit 2017-03-31 01:12:44 +03:00
MANIFEST.in Initial commit 2017-03-31 01:12:44 +03:00
Makefile Added makefile 2017-04-16 21:57:26 +03:00
README.md Updated README.md, fixed spelling mistakes. 2017-04-28 23:36:22 -07:00
requirements.dev.txt Resolve #12: renamed requirements*.pip to requirements*.txt 2017-04-28 17:55:01 +03:00
requirements.txt Resolve #12: renamed requirements*.pip to requirements*.txt 2017-04-28 17:55:01 +03:00
setup.py Minor improvements 2017-04-08 09:38:22 +03:00
tox.ini Use new requirements 2017-04-28 18:00:19 +03:00

README.md

GIXY

Mozilla Public License 2.0 Build Status Your feedback is greatly appreciated GitHub issues GitHub pull requests

Overview

Gixy is a tool to analyze Nginx configuration. The main goal of Gixy is to prevent misconfiguration and automate flaw detection.

Currently supported Python versions are 2.7 and 3.5+.

Disclaimer: Gixy is well tested only on GNU/Linux, other OSs may have some issues.

Installation

Gixy is distributed on PyPI. The best way to install it is with pip:

pip install gixy

Run Gixy and check results:

gixy

Usage

By default Gixy will try to analyze Nginx configuration placed in /etc/nginx/nginx.conf.

But you can always specify needed path:

$ gixy /etc/nginx/nginx.conf

==================== Results ===================

Problem: [http_splitting] Possible HTTP-Splitting vulnerability.
Description: Using variables that can contain "\n" may lead to http injection.
Additional info: https://github.com/yandex/gixy/blob/master/docs/ru/plugins/httpsplitting.md
Reason: At least variable "$action" can contain "\n"
Pseudo config:
include /etc/nginx/sites/default.conf;

	server {

		location ~ /v1/((?<action>[^.]*)\.json)?$ {
			add_header X-Action $action;
		}
	}


==================== Summary ===================
Total issues:
    Unspecified: 0
    Low: 0
    Medium: 0
    High: 1

Or skip some tests:

$ gixy --skips http_splitting /etc/nginx/nginx.conf

==================== Results ===================
No issues found.

==================== Summary ===================
Total issues:
    Unspecified: 0
    Low: 0
    Medium: 0
    High: 0

Or something else, you can find all other gixy arguments with the help command: gixy --help

Documentation

Full documentation and recommendations can be found here (sorry, but Russian language only so far)

Contributing

Contributions to Gixy are always welcome! You can help us in different ways:

  • Open an issue with suggestions for improvements and errors you're facing;
  • Fork this repository and submit a pull request;
  • Improve the documentation.

Code guidelines:

  • Python code style should follow pep8 standards whenever possible;
  • Pull requests with new plugins must have unit tests for it.