Feed title shinanigans? #1
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Insufficient data
Closed As
Invalid
function
analytics
function
communications
function
docs
function
events
function
onboarding
function
operations
good first issue
help wanted
needs
changes
needs
reporter feedback
needs
team vote
needs
triage
scope
bug
scope
improvement
scope
new
state
approved
state
blocked
state
duplicate
state
invalid
state
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
commops/feedcloud#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by dxa4481 on GitHub
So on this line
https://github.com/decause/feedcloud/blob/master/gencloud.py#L30
What happens if my feed title is something like
../../../../../../../home/decause/Documents/superSecretTextFile@decause
Excellent question! Do you have any suggestions for a library that normalizes/validates URLs, or another strategy to protect against such shenanigans?
dxa4481
You can try this guy's solution (top answer, not the poster), it's a little lengthy but I think it works
https://stackoverflow.com/questions/6803505/does-my-code-prevent-directory-traversal
dxa4481
I think you got the same thing going on here. The HFOSS one is a little more serious because now you can access any file, not just .txt files. You might want to test out my hunch, I could be mistaken. Depends how the feed parser handles things
https://github.com/decause/hfoss/blob/master/hfossfeedpull.py#L25