LibreNMS 버전 25.12.0 이전
Alert 규칙 이름에 HTML 코드를 삽입하여 크로스 사이트 스크립팅을 수행
LibreNMS를 버전 25.12.0 이상으로 업데이트하세요.
로컬 PC에서 Python을 설치하고, LibreNMS URL을 'https://your-librenms-url.com'으로 변경하여 코드를 실행하세요. 코드 실행 결과는 JSON 형식으로 출력됩니다.
python -c "import requests; response = requests.get('https://your-librenms-url.com/api/v1/alert-rules'); if response.status_code == 200: print('{{"result": "{}", "reason": "{}"}}'.format('취약' if 'Content-Type' in response.headers and response.headers['Content-Type'] == 'application/json' else '양호', 'Alert Rule API 응답이 JSON 형식입니다.' if 'Content-Type' in response.headers and response.headers['Content-Type'] == 'application/json' else 'Alert Rule API 응답이 JSON 형식이 아닙니다.'))"
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L