troydavisson / rets-md Goto Github PK
View Code? Open in Web Editor NEWRETS metadata viewer built on PHRETS
Home Page: http://retsmd.com
RETS metadata viewer built on PHRETS
Home Page: http://retsmd.com
Product: RETS-MD
Download: https://github.com/troydavisson/RETS-MD
Vunlerable Version: latest version
Tested Version: latest version
Author: ADLab of Venustech
Advisory Details:
Multiple Cross-Site Scripting (XSS) were discovered in“RETS-MD latest version”, which can be exploited to execute arbitrary code.
The vulnerabilities exist due to insufficient filtration of user-supplied data in multiple HTTP GET parameters passed to the “RETS-MD-master/index.php” URL. An attacker could execute arbitrary HTML and script code in a browser in the context of the vulnerable website.
The exploitation examples below use the "alert()" JavaScript function to see a pop-up messagebox:
Poc:
(1)
http://localhost/.../RETS-MD-master/index.php?username=%27%20/%3E%3Cscript%3Ealert(1);%3C/script%3E%3Ca%20id=%27test
(2)
http://localhost/.../RETS-MD-master/index.php?login_url=%27%20/%3E%3Cscript%3Ealert(1);%3C/script%3E%3Ca%20id=%27test
(3)
http://localhost/.../RETS-MD-master/index.php?password=%27%20/%3E%3Cscript%3Ealert(1);%3C/script%3E%3Ca%20id=%27test
Line 958 of phrets.php says:
'ForeignKeyName' => "{$key->ForiengKeyName}",
This looks like a typo.
Shouldn't it be:
'ForeignKeyName' => "{$key->ForeignKeyName}",
It would be useful to be able to do queries to the server while using RETS-MD.
I usually write a separate script to test queries but would be nice to be able to fire up RETS-MD and do some quick tests.
Thanks for RETS-MD and PHRETS. Just noticed that some newer servers using SSL weren't working on our local RETSMD install, but they told us that updating PHRETS to the newest version should fix the issue. BTW we are running our own fork of retsmd, you might find it interesting. Or not. Anyway, thanks!
Hello @troydavisson ,
This is a great library for getting MLS Server resource data.
I was facing some issue to connect BARIES MLS Server to this system can you please help me. i passed Server url, Username, Password, User-agent, and version but it's all-time show me invalid RETS-Version Error show in the screenshot.
Notice: Undefined index: in phrets.php on line 1711
```
$rets = new phRETS;
$rets->AddHeader("Accept", "*/*");
$rets->AddHeader("RETS-Version", "RETS/{$_REQUEST['rets_version']}");
$rets->AddHeader("User-Agent", $_REQUEST['user_agent']);
$rets->SetParam("cookie_file", $GLOBALS['cookie_file_name']);
if ($_REQUEST['force_basic'] == "true") {
$rets->SetParam("force_basic_authentication", true);
}
Notice: Undefined index: cookie_file_name in functions.php on line 30
Hi,
I like you script for the rets but I am getting issues with it. I am getting this error when running your scripts. You have any idea why this is occurring?
Warning: phRETS::GetServerInformation() [phrets.getserverinformation]: Node no longer exists in ../retsmd/phrets.php on line 1280
Also Does it support image downloading?
Thanks,
Hello
I'm trying to install RET-MD on my own hosting site but I keep getting the following error returned:
RETS M.D.
Error
There was an issue communicating with the RETS server:
HTTP (0)
thanks
Brian
HI Davisson,
I am trying to connect to RETs server using postman/fiddler.
All works well with https://retsmd.com/, however, it is never successful from fiddler or postman.
I have a website for my client which is written in .Net and java services. I want to call MLS DB to get data from .net/java class.
How can I do this?
I have below details from my MLS provider.
Login URL: https://rets2.gsmls.com/rets_idx/login.do
UserName: ######
Password: ######
User-Agent: ########
User-Agent Password: ####
I suspect I am not passing the right header values. I always get below error from postman/fiddler
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.