{"id":20136066,"url":"https://github.com/zkfmapf123/webserver-isms","last_synced_at":"2026-02-08T21:08:41.813Z","repository":{"id":235720592,"uuid":"706726311","full_name":"zkfmapf123/webserver-isms","owner":"zkfmapf123","description":"webserver isms config","archived":false,"fork":false,"pushed_at":"2023-10-19T09:40:05.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T22:42:03.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkfmapf123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-18T13:56:56.000Z","updated_at":"2023-10-18T14:34:31.000Z","dependencies_parsed_at":"2024-04-24T12:10:39.619Z","dependency_job_id":"42636e7b-9465-4d57-b49c-8aa40a33721f","html_url":"https://github.com/zkfmapf123/webserver-isms","commit_stats":null,"previous_names":["zkfmapf123/webserver-isms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkfmapf123/webserver-isms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fwebserver-isms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fwebserver-isms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fwebserver-isms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fwebserver-isms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkfmapf123","download_url":"https://codeload.github.com/zkfmapf123/webserver-isms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fwebserver-isms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781196,"owners_count":24643804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T21:17:36.079Z","updated_at":"2026-02-08T21:08:41.764Z","avatar_url":"https://github.com/zkfmapf123.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 웹취약점\n\n## Todo\n\n- [x] Directory Indexing\n  - 디렉토리 구조를 가리키는 URL을 요청할때 웹서버 측에서 인덱스 페이지를 응답하여 발생하는 취약점\n- [x] Server Token\n  - Webserver version이 나타나는 취약점\n\n## Nginx\n\n\u003e Nginx 설치\n\n```sh\nsudo yum update\nsudo amazon-linux-extras install nginx1\nsudo systemctl restart nginx\n\n## conf 위치\ncd /etc/nginx/nginc.conf\n```\n\n\u003e Directory Indexing\n\n```sh\n    server {\n\t    server_name test.domain.com;\n\n\t    location = / {\n    \t\troot /var/datas/download;\n        \tautoindex off; ## 추가\n\t    }\n    }\n```\n\n\u003e Nginx 버전명시\n\n```sh\nserver {\n\n  listen 80;\n  listen [::]:80;\n  server_name My_Project_Name;\n\n  # The nginx version is not specified in the response header Because of security.\n  # default : on\n  server_tokens off;    ## 추가\n\n  location / {\n\n    proxy_pass http://localhost:8080;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_set_header Host $http_host;\n  }\n}\n```\n\n\u003e After\n\n![nginx](./public/nginx.png)\n\n## Apache\n\n\u003e Apache 설치\n\n```sh\nsudo yum update\nsudo yum install httpd\n\n## conf 위치\ncd /etc/httpd/conf\n```\n\n\u003e Server Tokens\n\n![apahche](./public/apahche.png)\n\n\u003e Directory indexing\n\n![apache-2](./public/aparhce-2.png)\n\n## Apache Referenece\n\n- \u003ca href=\"https://zetawiki.com/wiki/CentOS_%EC%95%84%ED%8C%8C%EC%B9%98_%EB%B3%B4%EC%95%88%EA%B6%8C%EC%9E%A5%EC%84%A4%EC%A0%95_ServerTokens_Prod,_ServerSignature_Off\"\u003e Apahche 권장사항 \u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fwebserver-isms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkfmapf123%2Fwebserver-isms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fwebserver-isms/lists"}