https://github.com/zkfmapf123/webserver-isms
webserver isms config
https://github.com/zkfmapf123/webserver-isms
Last synced: 5 months ago
JSON representation
webserver isms config
- Host: GitHub
- URL: https://github.com/zkfmapf123/webserver-isms
- Owner: zkfmapf123
- Created: 2023-10-18T13:56:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T09:40:05.000Z (over 2 years ago)
- Last Synced: 2025-03-02T22:42:03.268Z (over 1 year ago)
- Language: HCL
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 웹취약점
## Todo
- [x] Directory Indexing
- 디렉토리 구조를 가리키는 URL을 요청할때 웹서버 측에서 인덱스 페이지를 응답하여 발생하는 취약점
- [x] Server Token
- Webserver version이 나타나는 취약점
## Nginx
> Nginx 설치
```sh
sudo yum update
sudo amazon-linux-extras install nginx1
sudo systemctl restart nginx
## conf 위치
cd /etc/nginx/nginc.conf
```
> Directory Indexing
```sh
server {
server_name test.domain.com;
location = / {
root /var/datas/download;
autoindex off; ## 추가
}
}
```
> Nginx 버전명시
```sh
server {
listen 80;
listen [::]:80;
server_name My_Project_Name;
# The nginx version is not specified in the response header Because of security.
# default : on
server_tokens off; ## 추가
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
```
> After

## Apache
> Apache 설치
```sh
sudo yum update
sudo yum install httpd
## conf 위치
cd /etc/httpd/conf
```
> Server Tokens

> Directory indexing

## Apache Referenece