Skip to content

Conversation

@TheSkorm
Copy link
Member

No description provided.

js/station.js Outdated

if (recovered) {
html += "<div><b>"+(recovery_info.recovered ? "Recovered by " : "Not Recovered by ")+recovery_info.recovered_by+"</u></b></div>";
_recovered_text = recovery_info.recovered ? "Recovered by " : "Not Recovered by ";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is xss vuln here. We shouldn't put user data into innerhtml.


html += "<div style='line-height:16px;position:relative;'>";
html += "<div><b><u>"+r[i].serial+(r[i].recovered ? " Recovered by " : " Not Recovered by ")+r[i].recovered_by+"</u></b></div>";
html += "<div><b><u>"+r[i].serial+(_recovered_text)+r[i].recovered_by+"</u></b></div>";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same xss here

}

html = "<div style='line-height:16px;position:relative;'>";
html += "<div><b>"+recovery.serial+(recovery.recovered ? " Recovered" : " Not Recovered")+"</b></div>";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

js/sondehub.js Outdated
html += "<div><b>TX Frequency:&nbsp;</b>" + data.tx_frequency + " MHz</div>";
} else if (data.hasOwnProperty("frequency")) {
html += "<div><b>Frequency:&nbsp;</b>" + data.frequency + " MHz</div>";
html += "<div><b>Frequency:&nbsp;</b>" + data.frequency.toFixed(3) + " MHz</div>";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably here too

}

var recovery_popup = true;
function recoveryPopup(){
Copy link
Member Author

@TheSkorm TheSkorm Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check if the map has loaded / recovery notice dom element exists yet before running this

@darksidelemm darksidelemm changed the title Testing Recovery Reporting Changes Feb 8, 2025
@darksidelemm darksidelemm marked this pull request as ready for review February 8, 2025 03:59
</div>
<div class="row">
<span>
<!--<input type="text" id="pr_notes" style="width: 140px;"/>-->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

js/sondehub.js Outdated
// Tile loads have changed. Update the store, and send the data.
last_sent_tile_loads = Object.assign({},tile_loads);
// // Check if the tile load count has changed.
// // Using JSON stringify is a bit of a hack, but appropriate for this kind of job.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should jsut remove this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

js/station.js Outdated
html += "<hr style='margin:0px;margin-top:5px'>";
html += "</div>";

html += "<div><b>Show Full Flight Path: <b><a href=\"javascript:showRecoveredMap('" + serial + "')\">" + serial + "</a></div>";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed this one for xss fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed this one, and a few others nearby

@darksidelemm darksidelemm merged commit a3a794e into master Feb 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants